How to evaluate an agent run
An agent run is one complete attempt by an agent to handle a request, including its steps, tool calls and retries. To evaluate one, judge the outcome against what the user wanted, then check the steps that produced it.
By Arun Prasad · Published · Last updated
On this page
Why agent runs matter
A run can succeed at every step and still fail the user, so span status alone can't tell you whether the run worked.
AI agents don't fail like normal software. A tool can return a 200 and the task can still fail. Standard monitoring shows that the request went through, not whether the answer was right. The run is the unit where those two things meet: the steps may all look fine while the outcome misses the goal.
This is why evaluating agents at the run level, looking at the outcome, not just call-by-call status, matters.
Step 1: Define what counts as one agent run
Decide the boundary first: one run is one request handled from start to finish. Without a fixed boundary, scores from different runs can't be compared.
Write down where a run starts (the user's request arrives) and where it ends (the agent returns a final result or gives up). Everything in between belongs to that run: model calls, tool calls, retries and handoffs.
In PRISM by Block Convey, the Agent Runs view groups steps, tool calls, retries, handoffs and state for each run.
Step 2: State the user's goal
Write down what the user came to get done, in one sentence, before you score anything. A run can only be judged against a goal you have stated.
Keep the goal about the user's need, not the agent's behavior. "Customer gets a refund status and knows the next step" is a goal. "Agent calls the orders tool" is a step. For multi-turn conversations, the goal may change partway through, so note when it does.
Step 3: Score the outcome against the goal
Give the run a pass or fail on the outcome first: did the user get what they came for? Do this before you look at any individual step.
A correct-looking final answer isn't always a pass. The path that produced it can still be fragile, wasteful or unsafe. Score the outcome, then record separately whether the path was acceptable. PRISM tracks the outcome against the user's goal, not just span status.
Step 4: Check the steps, tool calls and retries
After the outcome, look at the steps behind it. Outcome scoring tells you that a run failed; step-level checks tell you where.
For each run, check which tools were called and whether the right one was chosen, whether parameters were correct, how many retries happened and why, and whether state carried over correctly between steps. Repeated failures at the same step across many runs point to a pattern worth fixing, not a one-off.
Step 5: Track cost and timing per run
Record the cost and timing of each run next to its outcome. Cost on its own says what a run spent; it doesn't say whether the spend produced a result.
You can track cost per agent run by attaching metadata to each model call and rolling it up per trace. In PRISM, Traces record the request, response, model, cost, timing and scores for each run, so you can read cost and outcome together.
How this looks in production
PRISM's Agent Runs view shows the steps, tool calls, retries, handoffs and state for a run. Steps appear when your integration sends them, so a run only shows what your agent reports. See integrations for what you can connect.
Evaluators then score the run in two ways:
- Deterministic rules give the same verdict for the same input, use no model, and run on 100% of sessions with no sampling.
- The LLM judge has a model read the exchange. It scores every incoming trace until the plan's allowance runs out. After that, only the deterministic rules run.
Each verdict links to the rule, the span, the source checked and the reason, so you can see why a run passed or failed. Custom evaluators need a Builder plan or above. Read more on the Evaluators page.
PRISM also groups repeated failures into patterns and shows how many sessions share each one.
If you want to see your own agent's runs laid out this way, you can send them to PRISM and open Agent Runs.
Common mistakes
- Scoring only the final answer. A correct answer can come from a poor path, and a poor path can fail next time. Fix: score the outcome, then check the path separately, outcome scoring and step-level checks answer different questions.
- Treating HTTP 200 or span status as success. A tool can return a 200 and the task can still fail. Fix: judge the outcome against the user's goal, not the status of the calls.
- Judging runs with no stated user goal. Without a goal, "pass" means whatever the reviewer assumes. Fix: write the goal in one sentence per run or per intent (Step 2) before scoring.
- Looking only at cost. A cheap run that fails the user is not a saving. Fix: read cost next to outcome, and record the pass or fail verdict next to cost for each run. Treat the run as a unit of cost attribution.
Should an agent run pass if the final answer was correct?
Not automatically. A correct final answer is necessary for most goals but doesn't settle whether the run was acceptable.
Consider two runs with an identical answer: one resolved the account in a single lookup, the other searched four times, guessed at a customer ID and happened to be right. The answers match, but the runs are not worth the same. Decide ahead of time which differences matter for your agent, and write the pass rule down. For example, "correct answer, no policy-breaking tool calls".
How many agent runs do I need to score before the numbers mean anything?
There is no fixed number that fits every agent.
Here is how PRISM handles it: deterministic rules run on 100% of sessions, and the LLM judge scores every incoming trace until your plan's allowance runs out. Neither samples.
How do I track cost per agent run?
Record the cost of every model call against the run that made it, then add them up per run. Attaching metadata to each model call lets cost be rolled up per trace, including per agent run.
In PRISM, Traces record the model, cost and timing for each run, next to its scores. That lets you see cost alongside outcome.
What are the levels of agent evaluation?
Agents can be evaluated at different levels: at the individual run, across multiple turns in a session, and at the step level within a run.
In PRISM, Agent Intelligence and the core observability views cover these levels: Traces cover each run's request, response, model, cost, timing and scores. Sessions cover the multi-turn journey and drift. Agent Runs cover steps, tool calls, retries, handoffs and state. Scores & Alerts is the fourth view.
See whether your agent's runs worked
Send runs from your agent to PRISM and read the outcome, steps, cost and verdict for each one.
Free to start, 100 credits each month.