A tool returns a huge JSON response and the agent's answers get worse. What do you do?
IntermediateScenarioTool use & function calling
Answer
Trim the response in the tool: select only needed fields, paginate, summarise large lists and cap sizes. Large outputs crowd out the instructions and earlier findings. Tell the model when data is truncated and how to get more.