mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-05-03 05:20:36 +00:00
f57e988586
- Implemented `SanitizeJSONControlChars` to escape literal control characters in JSON string values, ensuring compliance with the JSON specification. - Enhanced `SanitizeToolCallArguments` method to apply sanitization across tool call arguments in the chain. - Added comprehensive tests for both sanitization functions to validate behavior with various input scenarios.