Skip to content

Conversation

@ahoshaiyan
Copy link

This PR changes tool result serialization to prevent UTF-8 code points from being escaped during serialization. This drastically reduces the context size when returning a response that contains languages other than English.

We have been running a monkey-patched version in production and it helped us improve the agent accuracy and control cost better.

Screenshot 2026-01-15 at 10 08 03 AM

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