Most teams test an agent the same way at first: they try a handful of prompts, read the answers and decide it feels good enough. That works for a prototype. It stops working once other people depend on the agent, because nobody can say whether a change made it better or worse.
An evaluation, or eval, replaces that feeling with a repeatable test. Anthropic defines it simply: "give an AI an input, then apply grading logic to its output to measure success" (Anthropic, Demystifying evals for AI agents). The hard part is the grading logic, and that starts with a clear statement of what success means.
Google Cloud's guidance on agent evaluation shows the difference between a goal you can test and one you cannot (Google Cloud, A methodical approach to agent evaluation):
| Vague goal | Testable success statement |
|---|---|
| "The agent should be helpful." | A factually correct, concise summary fully grounded in the provided documents. |
| "The agent should book trips." | A correctly booked multi-leg flight that meets every user constraint on time, cost and airline, with no errors. |
Write two or three statements like these for your agent. Then add the constraints that matter in production: how many turns a task may take, what it may cost, which actions need a human and what the agent must never do. Each statement becomes one or more checks.
Anthropic notes a side benefit. Two engineers reading the same specification often disagree about how the agent should handle edge cases, and writing eval tasks forces that disagreement into the open before launch rather than after.



