mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-09-11 04:45:38 +00:00
- 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.