Skip to content

Feat: Add opt-in normalization for embedded JSON tool args#38

Closed
MohamedAkbarally wants to merge 2 commits intofix/cache_handlingfrom
fix/normalize-embedded-json-tool-args-flag
Closed

Feat: Add opt-in normalization for embedded JSON tool args#38
MohamedAkbarally wants to merge 2 commits intofix/cache_handlingfrom
fix/normalize-embedded-json-tool-args-flag

Conversation

@MohamedAkbarally
Copy link
Copy Markdown
Contributor

Summary

  • add an opt-in Agent flag to handle tool calls like {"payload":"{\"x\":1}"} when the schema expects payload to be an object
  • normalize nested JSON strings for schema object/array fields before validation
  • add a focused test for enabled vs default behavior

@MohamedAkbarally MohamedAkbarally changed the base branch from main to fix/cache_handling April 1, 2026 05:58
Avoid Any in the embedded JSON normalization helper so the new logic passes ruff without changing runtime behavior.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant