AI-Ready Data Ho Bae

How Do You Build Evaluation Cases for an AI Agent?

A stack of case cards with an arrow to one graded case card that shows three trial dots

An operations team plans to let an AI agent answer billing questions next month. The demo works, but nobody has agreed which cases will decide whether the agent is ready.

AI agent evaluation cases are the inputs, expected outcomes and pass rules a team writes before it runs an agent on a specific task, usually drawn from requests the business has already handled, so every run is checked against the same conditions.

CUBIG defines AI-ready data as data prepared for a specific AI task, with results checked, that a team can recheck where needed when conditions change. For an agent, the evaluation cases are how a team checks those results: they state what the task is and what a correct result looks like. In CUBIG’s insurance conversation project (internal test, January 2025), 6,874 cleaned conversation records spanned 64 intent categories, and some categories had fewer than 50 examples, so a test sample drawn only from frequent requests could leave those categories out.

Key takeaways

  • Write the expected outcome and the pass rule before the agent runs, not after someone sees the result.
  • Build cases from requests the business already handled and from real failures, and have the task owner confirm each expected outcome.
  • Grade the final outcome, and read the transcript when the path matters.
  • Run each case more than once, and rerun the cases when the data, model, prompt or tools change.

What is an AI agent evaluation case?

An AI agent evaluation case describes one task that a team expects an agent to handle. The case gives the agent an input, defines what a correct result looks like and states how the team will judge the result. A billing case, for example, might ask the agent to explain a disputed charge and decide whether the account needs a correction or a handover to a person.

Anthropic’s engineering post Demystifying evals for AI agents (January 2026) defines the basic unit: “A task (a.k.a problem or test case) is a single test with defined inputs and success criteria.” The post separates the task from each attempt at it: “Each attempt at a task is a trial.” A team can therefore run the same case several times and compare the trials.

Anthropic also names the part that decides pass or fail: “A grader is logic that scores some aspect of the agent’s performance.” A grader might check whether the agent selected the correct account, applied the right billing rule or sent the request to the right team. For AI agent evaluation, the team writes that pass rule down before the agent runs, so the result cannot reshape the rule.

Where should AI agent evaluation cases come from?

Operations teams can start with requests that employees have already resolved, such as closed support tickets, completed billing inquiries and documented account changes. Each example gives the team a real input and a record of what happened. The past resolution is only a starting point: the task owner confirms the expected action against current policy and current data. What data to check before using an AI agent builder walks through the same step for a maintenance agent.

Real failures deserve particular attention. A wrong refund, an unnecessary account change or a missed handover can reveal a condition that a successful demo may not test. Anthropic’s January 2026 post suggests a starting size: “In reality, 20-50 simple tasks drawn from real failures is a great start.” Anthropic offers that range to counter the belief that teams need hundreds of tasks before they start, not as a fixed requirement.

A random sample of past requests can miss rare request types. An agent might answer ordinary invoice questions correctly and still fail when a customer disputes a charge after an account transfer. The team adds unusual requests, exceptions and cases that require escalation on purpose, and the task owner confirms that each expected outcome still follows current business rules.

The table below shows four illustrative case types for a billing agent.

Four kinds of evaluation cases for a billing agent (illustrative)
Case typeExample inputExpected outcomeWhat it checks
Routine requestA customer asks why this month’s invoice is higher than last month’s.The agent explains the charge using the current price list.Whether the agent reads the right account and the current data
Data problemTwo account records show different billing addresses.The agent flags the conflict and does not change either record.Whether the agent notices a known data problem instead of guessing
HandoverA customer disputes a charge after an account transfer.The agent hands the request to the billing team with a reason.Whether the agent stops where the business wants a person to decide
RefusalA caller asks for another customer’s invoice.The agent declines and does not reveal the record.Whether the agent keeps to access rules

What should each evaluation case record?

An evaluation case should hold enough information for another team member to understand the request, reproduce the conditions and judge the result without guessing:

  • The input exactly as the user wrote it, including any attachment or detail supplied with the request.
  • The data the agent may read, with the file version or date, so the team knows what information was available during the run.
  • The expected outcome, such as a completed action, a required final state or a handover to a person with a clear reason.
  • The pass rule, decided before the first run, stating what the agent must do to pass and which errors count as failures.
  • The person who confirmed the expected outcome, usually the task owner.
  • The known data problem the case covers, if any, such as conflicting account values, missing fields, duplicate records or outdated information.

Related entries: agent evaluation, evaluation set and golden dataset.

What an AI agent evaluation case records: the input and the data the agent may read, the expected outcome and pass rule, and the owner who confirmed it

How should a team grade an agent’s run?

Anthropic’s January 2026 post advises that “it’s often better to grade what the agent produced, not the path it took.” The outcome is the final state of the task. In a billing workflow, the team checks whether the agent applied the authorized adjustment and left the correct account in the expected state.

The transcript is the full record of the run, including the agent’s messages, decisions and tool calls. Writing about coding agents, Anthropic adds that “it’s often useful to also grade the transcript.” Transcript review catches problems that an outcome check can miss, such as an agent that reaches the right final state after reading the wrong account record or calling a tool it should not use. Reading transcripts takes more reviewer time than checking the final state.

OpenAI’s A practical guide to building agents (April 2025) lists, among its principles for choosing a model, “Set up evals to establish a performance baseline”. The same baseline gives the team a recorded result to compare against after a model, prompt, tool or data change.

Comparison of grading an agent run by its outcome, the final state, and by its transcript, the messages, decisions and tool calls

CUBIG Shorts

A Similar Score Is Not a Run Record.

A short clip from episode 7 of CUBIG’s series It Worked in the Demo.

▶  Watch on YouTubeSubscribe

Why run each AI agent evaluation case more than once?

A single successful run does not show that an agent can complete a task consistently. The same request can produce different answers because the agent’s reasoning, tool choice or reading of the available information can vary between attempts. Repeated trials let the team separate an agent that usually succeeds from one that succeeds only occasionally.

Anthropic’s January 2026 post describes two measures for repeated trials: “pass@k measures the likelihood that an agent gets at least one correct solution in k attempts.” and “pass^k measures the probability that all k trials succeed.” The first estimates whether the agent succeeds at least once in k attempts; the second estimates whether it succeeds in all k.

The tau-bench paper by Yao and colleagues (2024, arXiv) reported that “even state-of-the-art function calling agents (like gpt-4o) succeed on <50% of the tasks,” and “are quite inconsistent (pass^8 <25% in retail).” Those figures come from simulated tasks in the 2024 tau-bench benchmark, not from an agent running in a company’s live operations.

The task owner sets the repeat count and the consistency threshold according to the cost of a failure. An agent that explains invoices may need a different threshold from an agent that changes balances or issues refunds. Report the number of successful trials together with the total, because one average score can hide a case that fails repeatedly.

When should a team rerun its evaluation cases?

A team reruns its evaluation cases when the data the agent reads changes in a way that could affect its answers, for example a new policy file, an updated account table or a revised reference list. The team also reruns the cases after a model or prompt change, and after a tool change such as a new search function or a different permission setting.

For each run, the team records the model version, prompt version, data version and relevant tool versions, together with the trial results and transcripts. With those records, a reviewer can trace a changed result to a changed input, model, prompt or tool. A passing result from an earlier setup does not show that a new setup will pass.

Evaluation cases are one part of a wider review; CUBIG’s guide to agentic AI risk management lists seven checks before an agent acts.

Where does CUBIG fit?

Syntitan, CUBIG’s AI-ready data platform, includes Ready for Agent, which creates Tasks and Cases from work materials so a team can review them as candidate evaluation cases. Syntitan keeps the original dataset intact, starts each Use Case Project from a copy and records preparation and verification results as Versions. The team runs the reviewed cases against its agent in its own test setup, outside Syntitan.

Syntitan does not decide what a correct billing outcome is; the task owner makes that call. The software that runs the cases and scores the results is an evaluation harness, which the AI team chooses and operates.

Before the agent goes live, write down a first set of cases from real requests and real failures, with the expected outcome and pass rule for each. See how Syntitan keeps the original dataset intact and records each prepared Version.

Explore Syntitan, CUBIG's AI-Ready Data Platform

FAQ

How many cases should a team start with?

Anthropic's engineering post (January 2026) calls 20 to 50 simple tasks drawn from real failures a great start. The right number depends on how varied the task is and how costly a wrong action would be.

Where should AI agent evaluation cases come from?

Start with requests the business has already resolved, especially real failures and exceptions. Ask the task owner to confirm each expected outcome against current policy and data.

Should teams grade the outcome or the transcript?

Grading the final outcome is often the better default, and reading the transcript helps when the path matters, for example when the agent should not call a certain tool or read a certain record.

Why should an agent repeat the same case?

Repeated trials show whether an agent succeeds consistently or only occasionally. pass@k measures the chance of at least one success in k attempts, and pass^k measures the chance that all k attempts succeed.