AI IT Outsourcing Technology

AI Agent Evaluation: How to Test an Agent Before You Accept It

8 min read
AI Agent Evaluation: How to Test an Agent Before You Accept It

AI agent evaluation is the part of an agent project that decides whether you can trust what you bought. A demo shows that an agent can do the task once. An evaluation shows how often it does the task right, on your inputs, after every change. On November 23, 2026, Uber's engineering team described how it evaluates agent skills that agents now invoke more than a million times a month, and the same day Anthropic launched Claude Ship, which lets agents review, fix and approve code changes. Agents now do daily work inside large companies, and the companies running them at scale test them all the time.

This guide is for CTOs and product owners who are commissioning an agent from an outside team. It explains what an evaluation suite contains, which graders to use, what pass rate to accept, and how to write evaluation into the contract so that you own the evidence. We build agents for clients through our AI agent development services, and the evaluation set is one of the deliverables we hand over.

Why a demo is not evidence

A language model gives different answers to the same input. An agent adds more variation on top: it chooses tools, reads what they return and decides what to do next. Two runs of the same request can take different paths and end in different places.

Anthropic's guide, Demystifying evals for AI agents, gives a vocabulary that works well between a buyer and a vendor:

  • A task is one test with defined inputs and success criteria.
  • A trial is one attempt at a task. You run several, because results vary.
  • A grader is the logic that scores some part of the result.
  • A transcript (or trace) is the full record of a trial: outputs, tool calls and intermediate results.
  • The outcome is the final state. A booking agent can say "your flight is booked"; the outcome is whether the booking exists in the database.

For acceptance, the outcome is the part to check. An agent that writes a confident summary of work it never did will pass a demo. It fails an evaluation that checks the outcome.

What an evaluation suite contains

An evaluation suite is a collection of tasks that share a goal, for example all the refund, cancellation and escalation cases for a support agent. Anthropic's advice is to start with 20 to 50 tasks drawn from real failures and manual checks, and to grow the set from there. Waiting for hundreds of tasks only delays the moment you learn something.

Uber's guidance for a skill's eval suite is a useful template for the mix:

  • About 5% golden cases: a fixed input, an expected output and mocked tools. These catch regressions exactly.
  • About 80% real prompts, graded on trajectory, meaning whether the agent used the right tools in the right order.
  • About 15% cases judged by the author, the person who knows what a good answer looks like.

AI agent evaluation suite mix: about 5% golden cases, 80% real prompts graded on trajectory and 15% judged by the author, based on Uber's November 2026 guidance

For a commissioned agent, the real prompts should come from your business: old tickets, real documents, recorded requests. Your vendor can clean and label them, but only your people can say whether an answer is acceptable. Plan their time for it. Test both directions as well. If you only check that the agent escalates when it should, you may end up with an agent that escalates everything.

Three kinds of graders

Each task needs one or more graders. Anthropic groups them into three types, and most real suites combine all three.

Grader How it works Strong at Weak at
Code-based Exact or pattern match, unit tests, checks on the final state, checks on which tools were called Fast, cheap, repeatable, easy to debug Brittle when a valid answer is worded differently
Model-based A second model scores the answer against a written rubric Open-ended answers, tone, completeness Varies between runs; needs calibration against people
Human A subject-matter expert reviews a sample The reference for quality Slow and costly, so used for sampling and calibration

A practical rule from the same guide: prefer code checks where the task allows them, use a model grader where it does not, and use people to keep the model grader honest. Grade what the agent produced rather than the exact path it took, unless the path is the requirement. For an agent that issues refunds, the path is the requirement: it must verify identity before it calls the refund tool.

What pass rate should you accept?

Buyers often ask for 100%. For an agent, that target misleads in two ways.

First, a single pass rate hides how consistent the agent is. Anthropic describes two measures. pass@k is the chance that at least one of k attempts succeeds. pass^k is the chance that all k attempts succeed. With a 75% success rate per trial, the chance of three successes in a row is about 42%. For a customer-facing agent, consistency is what users feel, so pass^k is the number to watch.

pass@k and pass^k for an agent with a 75% success rate per trial: one success in three tries is likely, three successes in a row happen about 42% of the time

Second, a suite that always passes may not test anything. Uber's team writes that evals passing 70% to 90% of runs can be more useful than those that pass 100%, because a perfect score may mean the eval misses real changes in the answer. Anthropic separates the two jobs:

  • Capability evals measure what the agent can do. They start with a low pass rate and give the team something to improve.
  • Regression evals check that the agent still does what it did last month. These should pass nearly every time, and a drop means something broke.

So set two thresholds in the agreement: a near-perfect bar for the regression suite, and an agreed bar per capability area that reflects the business risk of a wrong answer.

Writing evaluation into an outsourcing contract

Most agent contracts list features and say little about how quality will be shown. These five clauses make evaluation part of acceptance.

1. You own the evaluation set

The tasks, reference answers, rubrics and grading scripts belong to you and live in your repository. They are worth more than the prompts, because they let you change models or vendors later and know within a day whether quality held. Our guide to QA outsourcing makes the same point for ordinary test cases.

2. Acceptance is a score on an agreed suite

Write down which suite runs, how many trials per task, which graders apply and the threshold for each area. Acceptance then becomes a report you can read, not an opinion formed in a demo meeting.

3. Every model or prompt change reruns the suite

Models change under you. Uber notes that a skill can stop working because a model upgrade changes how the agent reads instructions. The contract should say that any change to the model, prompts, tools or retrieval runs the regression suite before release, and that you see the result.

4. Transcripts are kept and readable

When a task fails, the transcript shows whether the agent made a mistake or the grader rejected a valid answer. Ask for transcript storage, a way to read them, and a regular sample review with your subject-matter expert. Logs should let you rebuild why the agent gave a particular answer on a particular day.

5. Cost and latency are measured per task

An agent that answers correctly but burns tokens on every request can still fail the business case. Uber measures the cost of each skill call and cut one tracing skill's cost per invocation by 46% after a change. Ask for cost per task and response time in the same report as quality.

Acceptance flow for an outsourced AI agent: agree the suite and thresholds, run trials, read transcripts, accept or fix, then rerun the regression suite on every change

These clauses fit any engagement model. If you are still working out how AI changes the rest of an outsourced build, our post on AI-driven software development covers code review, tests and ownership.

Questions to ask the team building your agent

These are questions we expect from clients, with the kind of answer you should hear.

  1. What will the first evaluation suite contain? A number of tasks, where they come from, and which of your people label them.
  2. Which graders will you use for each task type? Code checks for anything with a verifiable outcome, a rubric for open answers, and a named reviewer who calibrates the rubric.
  3. How many trials per task, and which measure decides acceptance? An answer that mentions consistency, not just a single success rate.
  4. What happens when you switch or upgrade the model? The regression suite runs first and you get the report.
  5. Where are transcripts stored and who reads them? A place you can access and a review rhythm.
  6. What will a task cost to run? A measured number from the suite, reported with quality.

How we evaluate agents at MOHA

On agent projects we build the evaluation set early, right after scoping, from real examples of the task and with the people who do that work today. It ships with the code, the prompts and the documentation, and it belongs to the client. Guardrails are part of the build: a confidence threshold below which the agent says it cannot answer, routing to a person when that happens, sources shown next to generated answers, and logs that explain each output. The AI agent development services page describes the five stages in full.

We apply the same habits to our own tools. Our Test-case AI platform drafts test cases from a knowledge base written under ISTQB guidelines, and engineers review every draft before it reaches the repository. For clients, we have built assistants such as the customer support chatbot for StarHub in Singapore, where the agent handles routine requests and hands the rest to a person with the details already collected.

If your project is wider than one agent, our AI development services cover model integration and applied machine learning, and a standing team in an offshore development center can run the evaluation suite as part of ongoing work.

Talk to us about your agent

If you are planning an agent and want acceptance built on evidence you own, contact us to discuss your project.

Contact us

Emily
Related Articles
AI IT Outsourcing Offshore Development Software
AI IT Outsourcing Offshore Development Software
AI Digital Transformation Software
We got your back! Share your idea with us and get a free quote