Test an AI agent before you change it

Agent evaluations tell you whether a change made your agent better or worse before your team or customers see it. You collect test cases, write scorers that grade the replies, and compare each run with last time.

What goes into an agent evaluation?

Collect the questions that matter

A test case is a question for the agent, plus the answer you expect if you have one. Add cases from real runs, have Hercules generate them, or import up to 200 rows from a CSV spreadsheet or JSON file.

Test cases
test case dataset open as a grid with Input, Expected output and Tags columns
scorer editor with grading criteria and result type beside a preview showing a 100 percent pass rate

Write down what a good answer looks like

A scorer is an AI grader that checks each reply against your plain-English criteria and returns pass or fail, a percentage, or a label from your list. Start from presets such as Answer accuracy and No hallucination, and try a scorer on a few cases before you save it.

Scorers
completed evaluation run with per-scorer score and each case's expected answer beside the agent's output

Prove a change helped

A baseline is the evaluation you save as the score to compare against, and later runs line up every question against it. Filter the report to Passed, Failed or Errors to see which answers changed.

Evaluation runs
Start evaluation dialog with the Agent version menu open on v1, currently published, plus a scorer and a dataset

Compare two versions before publishing either

Each evaluation picks which version writes the replies, and the newest version is the default. You can test a new version against the live one and publish whichever scores higher.

Evaluation runs
Evaluation report with each reply beside its expected answer, and the judge explaining a fail caused by the test case

Read every reply beside its grade

The report puts each reply beside the answer you expected and each scorer's grade. The scorer's reasoning on each case shows whether a fail came from a weak reply or from vague criteria.

Scorers

How do you run your first evaluation?

  1. 1. Build a dataset

    Write test cases on the questions contractors ask about delivery windows, split deliveries and missed drop-offs.

    Hercules generates test cases on that topic. Add the answer you expect to each case that needs one.

  2. 2. Set a baseline

    Pick up to five scorers and one or more datasets, then click Run evaluation. Hercules answers and grades every question, then you click Set as baseline.

  3. 3. Change the agent and run it again

    Edit the instructions and run the same evaluation on the new version. Hercules shows which answers got better and which got worse against the baseline.

What could this look like for a business?

In this hypothetical example, a building materials distributor with 70 staff tests changes to the agent that answers their sales reps' delivery questions. The operations lead saves 40 real questions from run history with expected answers. She sets a baseline with the Answer accuracy and No hallucination scorers, rewrites the instructions on split deliveries and runs it again.

She publishes only when no answer that passed before now fails. Catching a wrong split-delivery answer here costs her one rerun, before any rep repeats it to a contractor.

Related features

Frequently asked questions

What should you know before you rely on evaluations?
  • An evaluation writes each reply in one pass, with no tools, integrations or earlier messages, so check tool use in run history.
  • Scorers that compare a reply against an expected answer skip cases that don't have one.
  • One evaluation covers at most 100 questions, so filter datasets by tag to stay under it.
  • Writing replies, grading and generating test cases all spend AI credits. Costs and limits
  • See what each plan includes on the pricing page.
Can a scorer grade real runs?

A scorer can grade real runs if it doesn't need an expected answer. It grades the share of runs you set, from 1% to 100%, with grades in run history and totals on Analytics. Scorers

What happens if I delete an evaluation run?

Deleting an evaluation run removes its scores and results for good. If it was your baseline, you have none until you set another. Evaluation runs

Can I export my test cases?

You can export all your test cases or only ticked rows, as CSV or JSON, and import the file again later. Test cases

Can Auto-improve suggest the changes to test?

Auto-improve reads the agent's runs and your team's reviews, then opens an issue with a suggested fix for each problem. Applying a fix publishes a new version right away, which you can roll back. Auto-improve

How do you get started?

Set a baseline before your next instruction change, then run the same evaluation after it. Start building.