NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new
Advanced
Evaluating Agents and Multi-Turn Conversations
45 min readChapter 7Core

1. Evaluating agents and multi-turn conversations

HelpDesk Assistant, in agent mode, verifies the customer, looks up the account, finds the order, issues a refund, and closes the ticket. Agent evaluation measures whether a system like that ends in the right state, gets there through acceptable tool calls, and does so reliably across repeated runs. Multi-turn evaluation does the same for a whole conversation. The method: run each task in a sandbox with fake backends, check the end state with code, assert the few tool calls that matter, repeat each task, and grade whole conversations driven by a simulated user.

Use it when the system calls tools with side effects, when success takes several steps or turns, or when users need the task to work every time. Skip it for a single-turn answer with no tools, where Designing an Eval: Success Criteria and Graders covers it, and for a read-only lookup with one fixed call, where a unit test is enough.

"How do you evaluate an agent?" is a rising opener in AI engineering rounds, often 10 to 20 minutes on its own. A mid-level answer checks the sandbox's database instead of the agent's words and asserts the risky calls. A senior answer weighs grading the result against grading the steps, quotes reliability over repeated runs with numbers, and checks that a simulated user behaves like real ones.

This tutorial covers the offline task suite. Public agent benchmarks and online monitoring of live agents have their own sections in the course. The chapters follow the order an interviewer usually pushes.

premium content mask
Upgrade to premium and unlock full chapter
Spot an issue or have a suggestion?
Production Evals and Monitoring  |

Discussion

Upgrade to premium to read and join the discussion.