Function Call Parameter Type Sanitizer
Sanitizes runtime function arguments by performing type coercion, boundary clamping, and default fallback injection to prevent TypeError crashes during LLM tool dispatch.
This GenPark AI agent skill provides robust runtime parameter type sanitization, including string-to-numeric casting, boolean coercion, and boundary constraint validation. It ensures that raw arguments from Large Language Models (LLMs) are transformed into type-safe inputs for tool execution, effectively preventing TypeError crashes and enhancing the reliability of LLM tool dispatch. The skill also includes a mechanism for injecting default fallback values when necessary, all without external dependencies beyond the Python standard library.
주요 기능
01Numeric range clamping to ensure inputs stay within legal bounds
028 GitHub stars
03String-to-numeric & boolean coercion (e.g., 'true', '42', '3.14')
04Zero external dependencies, built on Python 3.9+ standard library
사용 사례
01Preventing runtime TypeError crashes when integrating LLMs with external tools
02Robust LLM tool dispatch in AI agent applications
03Ensuring type-safe execution of functions called by AI agents