A user reports the agent gave a wrong answer yesterday.
All you have is the final text it returned.
- AAsk the user to reproduce it while you watch live.
- BAdd end-to-end tracing that records each step, tool call, and model input/output per run.
- CAdd more logging around only the model’s final answer.
- DRaise the log level to debug everywhere from now on, so the next time it happens every line the system prints is kept for later.
Answer: B
Add end-to-end tracing that records each step, tool call, and model input/output per run.
Why
To debug a past run you need its whole trace - every step, tool call, and intermediate input/output - not just the final text. Reproduction is unreliable for nondeterministic agents.
- ObservabilityYour monthly AI bill doubled and you have no idea which feature caused the jump.
- ObservabilityYour agent’s logs are one big stream of plain-text lines.
- ObservabilityFull tracing of every run now costs more than the model calls it traces.
- ObservabilityYou log token spend per run in detail, yet nobody in the room can say whether the agent is worth keeping.
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