Problem
A team ships an LLM agent that plans, calls tools (flights API, SQL, a hotel database) and answers over several turns. Single prompt-response metrics do not show whether the agent finished what the user asked, called the right tool, or broke a product rule. Failures can sit in a tool call the user never sees. Agents are also complex, high-maintenance systems, so the team must show the added cost and latency pay off.
Example from the article: the Booking.com AI Trip Planner. A user asks for things to do in Frankfurt, then asks how to buy a train ticket to Paris. The agent cannot buy tickets, so only one of two tasks counts as completed.
Solution in brief
Evaluate in two layers. Black box: a judge LLM scores task completion per conversation. Glass box: deterministic checks on tool calls (valid schema, expected tool set) plus judge-LLM lints of tool names and descriptions. Before deployment, benchmark the agent against simpler LLM baselines on performance, cost and latency.
Questions this case answers
- How to evaluate an autonomous multi-step LLM system with tool access when only its final answers are visible to users but failures hide in intermediate steps
- How to decide whether a complex LLM system is justified over simpler prompt-based baselines given cost and latency constraints
- How to measure whether an LLM agent completes the tasks users ask for?
- How to check that an agent calls the right tools with valid arguments?
Tools and methods
- LLM-as-a-judge — finds the tasks in a dialogue and scores each as completed or not
- JSON schema validation — tool call validity
- Expected-tool-set comparison — tool correctness
- Tool name and description lints — binary judge checks on tool specifications
- Baseline benchmarking — agent against simpler LLM setups on performance, cost, latency
- pass^k — consistency over paraphrased requests
Google or a one-time email code. No password.