The model keeps mis-reading a tool’s output.
You control how the result is passed back.
- AFeed the raw, unprocessed output
- BReturn a clear, structured message the model can parse
- CPass the full raw output plus a note asking the model to read it more carefully this time
- DAdd more few-shot examples
Answer: B
Return a clear, structured message the model can parse
Why
Structure the tool result into a clear message before adding it to history - a raw dump forces the model to guess.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path