Review & debugging

A user reports the agent gave a wrong answer yesterday.

You have the full recorded trace: inputs, tool calls, and outputs.

  1. AReplay the exact recorded inputs to reproduce the failure deterministically first
  2. BAsk the model to read its own trace and explain what went wrong, then apply the fix it proposes straight away in production
  3. CPush a prompt change you suspect will help and watch production
  4. 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 this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path