Fit large JSON tool results into an LLM's context without losing data
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A zero-dependency Python library, agent-tool-result-reducer, shrinks large JSON tool responses to a character budget for LLM agents. It selects fields, drops the widest ones, and cuts only on whole-item boundaries, then tells the model in a _meta block exactly what was included and omitted, so partial results cannot be mistaken…