Repository navigation
Feedback on agent-tool-result-reducer #4
ajeetsk
started this conversation in
Design reviews
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
agent-tool-result-reducer fits large JSON tool results into an LLM agent's context without silently losing data. It keeps whole items, drops the widest fields before any item, and tells the model in
_metawhat it received and what it didn't.Version 0.2.2 adds examples for the OpenAI Responses API, the Anthropic Messages API and LangChain. Each is a one-line change in the tool loop.
This thread is for how it should work. Bugs go to the repo's issues.
Open questions
_meta? In our tests, gpt-6-luna and claude-opus-5-5 both usedselecton their own and reported partial results as partial. If yours ignores_metaor misreads it, which model was it, and what did it do?If you use it in a real agent, a short note on what the tool returns and the budget you set helps us tune the defaults.
All reactions