LearnQuestion bank

How would you evaluate a customer-support agent that performs multi-step tool calls, before launch and in production?

Applied LLMTechnicalHard

Theme reported publicly: Cohere, PolyAI

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Before launch: stateful mock tools plus simulated users across happy paths and edge cases
  • Score both outcome and trajectory: final state correct, policy followed, no forbidden or duplicate calls
  • Run repeated trials and require consistent success across all k attempts, not best-of-k
  • Track cost, latency, turns per resolution, and correct escalation behaviour
  • In production: sampled human review, calibrated judge-based monitoring, incident-derived regression cases

In full

I would evaluate it as a system, not a single transcript. Before launch I would run it in a sandbox with stateful mock tools such as CRM, billing, and ticketing, against simulated users with varied goals, missing information, and edge cases, then score each run on outcome and trajectory: the final state is correct, the agent used only allowed tools in a valid order, followed policy, and did not make forbidden, duplicate, or destructive calls. I would repeat each scenario k times and report whether it succeeds on all k attempts, because best-of-k hides flaky behaviour; I would also measure cost, latency, turns per resolution, and whether it escalates when it should and avoids unnecessary escalation. In production I would sample real conversations for human review, use judge-based monitoring for quality and policy adherence with human spot checks to keep the judge honest, and turn incidents into regression cases that are added to the pre-launch suite. The launch bar is not a high average score but stable success, bounded cost and latency, and a clear path to detect and roll back regressions.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Task success in a sandbox with stateful mock tools and simulated users
  • Outcome checks (final state correct) plus trajectory checks (policy followed, no forbidden calls)
  • Reliability over repeated trials (success on all k attempts), not only best-of-k
  • Cost, latency and turns per resolution; escalation correctness
  • Production: sampled human review, judge-based monitoring, incident-derived regression cases

Common mistakes

  • Grading only the final text
  • single runs with no repetition