How to Evaluate AI Agents: A 20–50 Task Starter Suite (Outcome, Trajectory, Cost)
Key takeaways
- OpenAI Evals is read-only since October 31 and shuts down November 30, 2026. OpenAI points to Promptfoo — copy your evals out before the 30th.
- Start from the business outcome, break it into observable behaviors, then pick evaluators. That is AWS's November 10 playbook order, and it works outside AWS too.
- 20–50 tasks is the starter size: real requests, golden answers, and the failures you already know about — each case run a few times, not once.
- Score three things: did it finish the job (outcome), did it take the right path (trajectory), and what did the run cost.
- Promptfoo is free and runs in CI; DeepEval adds Python-native agent metrics; LangSmith Plus is $39/seat/mo when you want hosted evals beside tracing.
Two days from now, OpenAI Evals is gone. The dashboard and API shut down on November 30, 2026 — evals have been read-only since October 31 — and OpenAI’s own migration guide points to Promptfoo. It is the same November 30 shutdown that takes Agent Builder with it. If your evals still live on the OpenAI platform, this weekend is the copy-out. The shutdown is the deadline, but it is not the job. The job is the suite: a set of tasks your agent has to pass before it ships, and a gate that stops a bad build from reaching users. This page builds that suite — 20 to 50 tasks, three scores, one gate — with the tools that run it and the prices they actually carry.
| Starter suite | 20–50 tasks: real requests, golden answers, and the failures you already know about |
|---|---|
| Three scores | Outcome (did it finish), trajectory (did it take the right path), cost (what the run spent) |
| Free runner | Promptfoo — MIT, $0, runs in CI |
| Python-native runner | DeepEval — Apache 2.0, agent metrics built in |
| Hosted runner | LangSmith Plus — $39/seat/mo, evals beside tracing |
| Deploy gate | Batch run before release; fail the build below your threshold |
Someone already ran the free path end to end, five days ago, and wrote down what it cost. Mark Saw at Markaicode ran Promptfoo 0.125.1 on November 23, 2026 — Windows 11 Pro, Node 24.14.1, Ollama 0.40.15 with llama3.2 (3B) — and the two-test starter config passed both tests in 4 seconds, 89 tokens, $0. The forgiving part is worth noting: his first assertion was icontains, a plain text check, and it passed on “Bonjour monde” where a stricter check would have wanted an exact match. That is the right first assertion — a loose check that proves the plumbing works — and the wrong one to keep once the suite matters. My check on his run: the versions and the $0 math check out against Promptfoo’s own docs, and the lesson transfers — start loose to prove the harness, tighten the assertions as the suite grows. The steps below assume that harness already runs.
Start from the outcome, not the metric list
The most common mistake, in AWS’s agent evaluation playbook published November 10, 2026, is starting with the metric list and picking the names that sound right. Helpfulness sounds good, so you use it. The run produces numbers, but they say almost nothing about whether the agent did its job — a support agent can resolve every ticket and still expose personal information in its replies. AWS’s fix is three steps, in this order, and it works outside AWS too.
First, define success in business terms. For a support agent, that might be first-contact resolution: the ticket is closed without a human touching it. For a research agent, a complete answer grounded entirely in the documents it retrieved. For a content-moderation assistant, flagging everything that should be flagged and only what should be flagged.
Second, break the outcome into observable behaviors. A support agent that resolves on first contact will typically complete the user’s stated goal, stay coherent across turns when the issue needs clarification, keep responses inside compliance boundaries, and call backend tools — ticket creation, order lookup — correctly. If you picked the agent by queue, the behaviors follow the queue: the support-agent shortlist already names the job each platform is for, and each of those jobs turns into a different set of behaviors to check.
Third, map each behavior to an evaluator at the right level. Trace-level metrics cover a single turn or a single tool call. Session-level metrics cover outcomes that only make sense across a whole conversation — did the agent stay on policy for all twelve turns, not just the first. Picking the metric before the behavior is how teams end up with a dashboard full of green and an agent that still fails customers.
Build the 20–50 task suite
A suite is a list of tasks with known-good answers, not a pile of prompts. Twenty to fifty is the starter size: fewer than twenty and one lucky run moves the score, more than fifty before you have a gate and you spend the week writing cases instead of shipping. Each task needs four things: the request as a real user would write it, the starting state (an order in the system, a ticket in the queue), the expected outcome (not the expected wording — the refund is in the ledger, the ticket is closed, the draft is in the right channel), and the tools the agent is allowed to use.
Where the tasks come from matters more than how many there are. Pull the first ten from real traffic — the requests your users actually sent last week, anonymized. Pull the next ten from the failures you already know about: the ticket the agent refunded twice, the lookup it did against the wrong account, the answer it gave from memory instead of the document. Those known failures are the highest-value cases in the suite, because they are the regressions you are most likely to reintroduce. The rest come from the edges: the vague request, the angry customer, the multi-step job that needs three tools in order, the request that should be refused.
Two habits keep the suite honest. Run each case a few times, not once — the same request gets different answers on different runs, and a case that passes once in three is a failing case, not a passing one. And keep the suite in git next to the agent code, so a prompt change and its eval result travel together. A suite that lives in someone’s notebook is a suite nobody runs.
Score outcome, trajectory, and cost
Three scores, because one score hides the other two failures. The AWS playbook’s catalog makes the split concrete: fifteen built-in evaluators on AgentCore, eight of them scoring response quality — correctness, faithfulness, helpfulness, relevance, conciseness, coherence, instruction following, refusal — plus three trajectory evaluators that compare the tools the agent actually called against the path you expected.
| Score | What it answers | How to check it |
|---|---|---|
| Outcome | Did the job get done? | Check state, not the final message — the refund in the ledger, the ticket closed, the record updated |
| Trajectory | Did it take the right path? | Compare tool calls against the expected path: exact order, in order, or any order, depending on the job |
| Cost | What did the run spend? | Calls × tokens × price per token; count the judge calls too, and the reruns |
Outcome is the score that matters most and the one most teams skip. An agent that says “Refunded” while the ledger shows no refund has failed, whatever its answer looked like. That is why the expected outcome in each task is a state change, not a sentence. For jobs that change state — bookings, refunds, ticket updates — the check reads the system after the run, not the chat transcript.
Trajectory is where agent evals differ from chatbot evals. A chatbot has one output; an agent has a path. The three trajectory checks from the AWS catalog map to how strict the job is: exact order when the steps must run in sequence, in order when extra steps are allowed between them, any order when only the set of calls matters. Most support jobs want in-order or any-order — insisting on exact order fails agents for taking a harmless extra lookup. The tool-call question is also a protocol question: which tools the agent can reach, and in what order, is the same ground the protocol map covers for MCP, A2A, and Poppy.
Cost is the score that keeps evals affordable. Every test case runs once per prompt, per provider — three prompts, two models, fifty cases is 300 model calls — and every LLM-graded assertion adds another call to the grading model. The formula is simple: calls × average tokens per call × price per token. Keep test prompts short, use plain text checks where they are enough, and save LLM grading for answers that genuinely need judgment. A local model makes the whole run $0, which is why the Markaicode run above cost nothing; on a paid API, the same suite is a line item you should be able to quote before you run it.
LLM-as-a-judge deserves one caution. A judge is a model with opinions, and it grades your agent’s answers against its own habits — verbose judges reward verbose agents. Calibrate any judge on a small set of human-labeled answers first, ten or twenty, and check where the judge disagrees with you before you trust it on the full suite. A judge you never calibrated is a second agent you never evaluated.
Pick the runner: Promptfoo, DeepEval, or LangSmith
The runner is the least important decision in this page, and the one people agonize over longest. All three below run the same suite; they differ in where you already live and who else needs to read the results.
| Runner | Pick it when | What it costs |
|---|---|---|
| Promptfoo | You want evals in CI this week, in any language, with no account | $0 — MIT, Community free forever, all eval features, 10,000 red-team probes/mo |
| DeepEval | Your agent is Python and you want agent metrics in the test file | $0 for the library — Apache 2.0; Confident AI hosted from $0 (Free) to $200/mo (Starter) |
| LangSmith | You build on LangChain or LangGraph and want evals beside tracing | Developer free (1 seat, 5k traces/mo); Plus $39/seat/mo, 10k base traces, then pay as you go |
| AgentCore Evaluations | Your agent already runs on AWS | Built-in, DeepEval, and AutoEval evaluators managed by AWS; priced per evaluation run |
Promptfoo is the default, and the one OpenAI itself recommends: a CLI and library where you write test cases in YAML, run promptfoo eval, and get a pass/fail grid in the browser. It needs Node.js 22.22.0 or newer, and version 0.125.1 shipped October 25, 2026, with 0.126.0 latest as of November 23. One wrinkle to know: OpenAI announced it was acquiring Promptfoo on March 9, 2026. Eight months later the package is still MIT-licensed and still shipping releases, and it still supports non-OpenAI providers, Ollama included — but an acquired open-source tool is worth re-checking twice a year, not assuming.
DeepEval is the Python-native pick: a pytest-style framework where test cases carry metrics like hallucination, answer relevancy, and whether the agent called the right tool, and run in CI so a prompt change cannot quietly break the product. Version 4.3.2 shipped October 28, 2026, with 4.3.4 following on November 11, and the library has roughly 19,000 GitHub stars. Its edge over Promptfoo is conversational metrics — Knowledge Retention, Role Adherence, Conversation Completeness — and a ConversationSimulator that plays the user across turns. The hosted layer is Confident AI: Free at $0 for 2 seats, 1 project, and 5 test runs a week; Starter at $200 a month per organization; Team at $2,000 a month for SSO, SOC 2, and custom RBAC. Two things to know before you adopt it: telemetry is on by default — DeepEval sends event names, metric names, and your IP to PostHog until you set DEEPEVAL_TELEMETRY_OPT_OUT=1 — and an independent review of DeepEval noted that release 4.2.0 reversed four metrics’ score direction in a minor version without advance notice, so pin the version in CI.
LangSmith is the hosted pick for LangChain shops: datasets built by hand, from production traces, or synthetically; code, LLM-judge, pairwise, and human evaluators; experiments you compare for benchmarking and regression. Online evaluators score live traffic with sampling rates and filters, and thread evaluators judge whole conversations after ten minutes idle. Developer is free for one seat and 5,000 base traces a month with 14-day retention; Plus is $39 per seat per month with 10,000 base traces, then $5 per 1,000. A three-person team on Plus pays $117 a month in seats before trace usage — cheaper than Braintrust Pro at $249 a month for a small team, and the gap closes as trace volume grows.
If your agent already runs on AWS, AgentCore Evaluations is the fourth option, not a fifth runner to compare: fifteen built-in evaluators, DeepEval and AutoEval managed for you, and custom evaluators when you need your own judge. The managed-agents comparison covers what AgentCore and the other hosted runtimes charge to run the agent itself; the evals ride on the same bill.
Put the gate in CI
A suite nobody runs is a document. The gate is what makes it a test: a batch run over the golden dataset before every release — after a prompt change, a model upgrade, or a tool change — that fails the build when the score drops below your threshold. Set the threshold from the suite’s own history, not from a round number: if the suite has passed at 92% for a month, a drop to 85% is a regression even though 85% sounds fine.
AWS’s three modes map to the three places the gate lives. On-demand runs a session through the evaluators while you are developing or debugging — the loop you run by hand. Batch runs the fixed stack over the golden dataset to catch regressions before a release. Online attaches evaluation to the live agent and samples real traffic at a configured rate, as a production health signal. Start with batch; add online once the batch gate has caught something real, because an online signal nobody acts on is just another dashboard.
The loop that keeps the suite alive is the last step: every production failure becomes a new case. A user reports the agent did something wrong, you reproduce it, you add it to the suite, and the next release has to pass it. That is also the security story — the WorkOS sandbox escape showed what happens when an agent’s failure mode is discovered by someone else first, and a refusal evaluator on the suite is the cheapest version of that lesson. A suite that never grows from real failures goes stale within a month, and a stale suite passes everything.
Wrong fits
Grading vibes is the first wrong fit. “Helpfulness: 8/10” from a judge with no rubric is a number that feels precise and means nothing. Every score in the suite should trace to a check you can explain — a state change, a tool call, a text match, or a rubric with named criteria.
Running each case once is the second. Agents are non-deterministic; a single pass proves the agent could do it once, not that it will do it tomorrow. Three runs per case is the floor for anything the suite gates on.
Judging only the final answer is the third. The final message is the easiest thing for an agent to get right and the least informative. Check the state it left behind and the path it took — that is where the expensive failures live.
Buying a platform before the suite exists is the fourth. A hosted dashboard does not write your test cases. Start with Promptfoo or DeepEval, free, in CI, and buy the hosted layer when the results need to be read by people who do not run the CLI — not before.
How I checked this
I used OpenAI’s deprecations page and migration guide, AWS’s agent evaluation playbook from November 10, 2026, Promptfoo’s pricing and installation docs, DeepEval and Confident AI’s pricing pages, LangSmith’s pricing page, and Mark Saw’s November 23, 2026 hands-on Promptfoo run (Windows 11 Pro, Node 24.14.1, Ollama 0.40.15, llama3.2 3B, 2 passed, 0 failed, 89 tokens, 4 seconds, $0) — all read November 28, 2026.
This page is the starter-suite build: 20–50 tasks, three scores, one deploy gate. I pick by what a team can ship this week — the free runner first, the hosted layer only when someone else needs to read the results — and by whether the score traces to a check you can explain.
Products in this guide
- Promptfoo MIT-licensed CLI that runs evals from a YAML file, locally or in CI. Community free forever; OpenAI's recommended Evals replacement. Visit site
- DeepEval Apache 2.0 Python framework with agent metrics — tool correctness, conversation completeness, simulated users — plus an optional Confident AI hosted layer. Visit site
- LangSmith LangChain's tracing and evaluation platform. Developer free for 1 seat; Plus $39/seat/mo with online evals, datasets, and annotation queues. Visit site
FAQ
How many test cases do I need to evaluate an AI agent?
20–50 to start. Fewer than 20 and one lucky run moves the score; more than 50 before you have a gate and you will spend the week writing cases instead of shipping. Grow the suite from production failures after the gate exists.
What is the difference between outcome and trajectory evaluation?
Outcome asks whether the job got done — the refund is in the ledger, the ticket is resolved. Trajectory asks whether the agent took the right path to get there — the right tools, in the right order, with the right arguments. An agent can pass the outcome and still fail the trajectory, for example by refunding from the wrong account.
What replaces OpenAI Evals?
OpenAI’s own guide points to Promptfoo: a free, MIT-licensed CLI that runs evals from a YAML file, locally or in CI. OpenAI Evals became read-only on October 31, 2026 and the dashboard and API shut down on November 30, 2026.
Is Promptfoo really free?
Yes. The Community edition is free forever under the MIT license, with all eval features and 10,000 red-team probes a month. You pay only for the model calls your tests make — pointed at a local Ollama model, a run costs $0.
How do I stop evals from passing while the agent still fails in production?
Run each case several times, check state instead of only the final message, and score whole sessions, not single turns. Then feed real production failures back into the suite as new cases — a suite that never grows from real failures goes stale within a month.