The bottom line
Evaluating an AI agent is harder than evaluating a chatbot answer, because an agent takes multi-step actions, so you measure the trajectory, not just the final text. Four dimensions matter. Task success: did the agent actually accomplish the goal, end to end — the metric that most directly maps to value. Tool-call accuracy: did it call the right tools, in a sensible order, with correct arguments. Groundedness: were its claims and actions supported by the data it retrieved, or invented. Response quality: was the final answer correct, relevant and complete. Build a test set of representative tasks with known-correct outcomes, score automatically (with a stronger model as judge) plus human review, and run the whole suite as a regression gate on every prompt, model or tool change. Where it breaks: the test set needs ownership and realistic tasks, LLM-as-judge has its own error, and agent evaluation is distinct from RAG evaluation — it judges actions, not just retrieval.
In This Article
If you cannot score it, you cannot ship it safely
The gate on most agent projects is a handful of people trying a handful of prompts and agreeing it seems good. That is not evaluation, and it is a dangerous basis for an agent that takes actions, because it tells you nothing about how the agent handles the thousand tasks real users will give it, or whether the last prompt tweak quietly broke three things. A probabilistic system that acts in production needs a measurable, repeatable score, the same way any production software needs tests.
Evaluating an agent is also harder than evaluating a single chatbot answer, and the extra difficulty is the whole point. An agent does not just produce text; it takes a sequence of actions to accomplish a goal. So evaluation has to judge the trajectory — did it succeed at the task, call the right tools, stay grounded — not only whether the final sentence reads well. Four dimensions cover it.
Task success: did it actually do the job
The most important metric is also the most outcome-aligned: did the agent accomplish the task it was given, end to end. Not 'did it produce a plausible response' but 'did it achieve the goal' — raise the correct ticket, retrieve the right figure and answer with it, complete the multi-step workflow. Task success is the number that maps most directly to business value, because an agent that converses beautifully but fails the task half the time is a liability, not an asset.
Measuring it requires a test set of representative tasks each with a known-correct outcome, so success can be judged objectively rather than impressionistically. For some tasks success is binary and checkable (the ticket exists with the right fields); for others it needs a judgement (the answer resolved the user's actual need). Either way, task success is the headline of an agent evaluation, and a framework that does not measure it is measuring the wrong things.
Tool-call accuracy: did it act correctly
Because agents act through tools, how well they use tools is a core quality dimension, distinct from the final answer. Tool-call accuracy asks whether the agent called the right tools for the task, in a sensible order, with correct arguments — and did not call tools it should not have. An agent can reach a correct-looking answer through a wrong sequence of actions, and in anything that writes to a system, the sequence matters as much as the result.
Evaluate the tool trajectory against what the task should have required: the expected tools were called, unnecessary or wrong ones were not, and arguments were right. This catches a class of problem the final answer hides — an agent that got lucky on the output despite poor tool use, which will not stay lucky at scale. For agents that take consequential actions, tool-call accuracy is close to task success in importance, because a wrong action is a real-world consequence, not just a bad sentence.
Evaluate the trajectory, not just the text. An agent that produces a right-looking answer through the wrong sequence of tool calls will not stay right at scale — and if it writes to a system, the wrong action is the failure, whatever the final sentence says.
Groundedness and response quality
Groundedness asks whether the agent's claims and the basis for its actions were supported by the data it actually retrieved, or whether it invented something plausible. An agent that acts on a hallucinated fact is the most dangerous failure mode, so groundedness — every claim traceable to retrieved evidence — is a non-negotiable dimension, especially where the agent then does something on the strength of that claim.
Response quality rounds it out: was the final answer correct, relevant to what was asked, and complete. These are the dimensions closest to classic RAG evaluation, and they matter here too — but for an agent they sit alongside task success and tool-call accuracy rather than standing alone, because an agent is judged on what it did, not only on what it said. Together the four give a rounded score: did it succeed, did it act correctly, was it grounded, was the answer good.
Run it as a regression gate on every change
An evaluation framework earns its keep when it runs automatically on every change that can alter behaviour — a prompt edit, a model version bump, a new or changed tool, a retrieval change. The suite runs against the test set, the four dimensions are scored, and the results are compared to the previous baseline, so a change that improves one task while silently breaking others is caught before it reaches users. Manual testing never catches that reliably; a regression gate does.
Scoring combines automated evaluation — a stronger model judging task success, groundedness and quality, and programmatic checks on tool trajectories and checkable outcomes — with periodic human review to keep the automated judge honest. Wire it into the deployment pipeline so a material regression blocks release, and store results over time, because model providers change models underneath you and an agent's success rate can drift with no change on your side. An agent without this is shipping on hope.
Where this breaks
The test set is the foundation and the weak point. It needs representative, realistic tasks with known-correct outcomes, including the hard, ambiguous and should-refuse cases — and it needs an owner and a refresh cycle, because an agent's job changes and a stale test set stops meaning anything. Budget for curating it as a living asset; a framework with a thin or outdated test set produces confident, meaningless scores.
Automated scoring with an LLM-as-judge is convenient and scalable but has its own error and bias, so treat its scores as a strong trend signal calibrated against human review, not as ground truth. And agent evaluation is not RAG evaluation with a new label — RAG evaluation judges retrieval and answer; agent evaluation judges actions and task completion, which is why task success and tool-call accuracy are first-class here. Evaluation reduces the risk of a bad agent; it does not remove the need for a human in the loop on the highest-stakes actions.
What to do first
Build the test set and measure the trajectory, not just the text.
- Build a test set of representative tasks — easy, hard, ambiguous and should-refuse — each with a known-correct outcome
- Score the four dimensions: task success (did it achieve the goal), tool-call accuracy (right tools, order, arguments), groundedness, and response quality
- Combine automated scoring (a stronger model as judge, plus programmatic checks on tool trajectories) with periodic human review
- Run the suite as a regression gate on every prompt, model or tool change, and block release on a material regression
- Store results over time to catch drift from provider-side model changes, and keep the test set owned and refreshed
If you cannot put a number on how often your agent actually completes the task correctly, it is not ready to act in production. Book 30 minutes with Amit on an agent evaluation framework — task success, tool-call accuracy, groundedness — run as a regression gate. No slides, no pitch deck, no obligation to proceed.
Free Assessment
Where does your operation sit on the data maturity curve?
8 questions. 3 minutes. You get a scored breakdown across data infrastructure, analytics readiness, and automation potential — with a specific next step for your industry.