Observability

A user reports the agent gave a wrong answer yesterday.

All you have is the final text it returned.

  1. AAsk the user to reproduce it while you watch live.
  2. BAdd end-to-end tracing that records each step, tool call, and model input/output per run.
  3. CAdd more logging around only the model’s final answer.
  4. 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.

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