A user reports the agent gave a wrong answer yesterday.
You have the full recorded trace: inputs, tool calls, and outputs.
- AReplay the exact recorded inputs to reproduce the failure deterministically first
- BAsk the model to read its own trace and explain what went wrong, then apply the fix it proposes straight away in production
- CPush a prompt change you suspect will help and watch production
- DRegenerate the answer once at a higher temperature and compare
Answer: A
Replay the exact recorded inputs to reproduce the failure deterministically first
Why
Debugging starts with a reliable reproduction. Replaying the recorded trace lets you see the failure on demand; asking the model to self-diagnose, guessing at fixes, or regenerating at a new temperature all change the conditions and hide the real cause.
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