All Questions
Agents And Tool Use medium

In production, an agent occasionally quotes the wrong refund amount. You only log the user query and the final answer, and engineers cannot reproduce the bug locally. What should you add first?

  1. A Log the final answer with higher verbosity and add user feedback buttons so wrong answers can be flagged and counted over time.
  2. B Set temperature to zero so the agent becomes deterministic and any wrong answer can be reproduced locally from the user query.
  3. C Record a structured trace per run: each model input/output, tool call arguments, tool results, latencies, and token usage.
  4. D Ask the model to append a natural-language explanation of its reasoning to each final answer, stored alongside the response.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions