Skip to main content
A case is one user prompt and the outcome the user should get from it. The Expected outcome is the test: a judge reads the finished run and decides whether the user got what they asked for. Assertions are for hard constraints, such as a tool that must never run. Each run of a case is one iteration.
To draft cases from your server’s tools or a test plan instead of writing each one, see Generate cases.

Start from the outcome, not the tool

“What does note 7 say?” can be answered along several paths, and many of them are fine. You find out which ones agents take by running the prompt, not by guessing:
  • Write the prompt and the expected outcome
    • For example: “The reply tells the user what note 7 says, using the note’s actual text.”
    • Leave the route as Any route.
  • Run it across clients and models, several iterations each
    • Agents may call read_note directly, search or list notes first, or answer from earlier context.
    • Clients expose and name tools differently, and models choose differently, so one pair tells you little.
  • Read the traces
    • See which paths reached the outcome and where the others broke: a missed tool, wrong arguments, or a response the model could not use.
    • See Read results.
  • Pin only what must never happen
    • Add an assertion where a path is actually wrong: a destructive call, an expensive detour, a stale source.
    • A route like “must call read_note” written up front fails a correct search_notes → read_note run and says nothing about whether the user got the note.

Add a case

Each tab adds the same two cases to a notes server: one where the user asks for a note, and a negative one that should be answered without a tool.
1

Open the suite

In the Evaluate tab, open Suites and pick a suite.
2

Start a blank case

On the Test Cases card, click Add case, then Add manually. In an empty suite (“No cases yet”), click Describe, which opens the same form beside a chat; you can fill it in yourself.
3

Write the prompt and the outcome

Type what the user asks in the first User prompt, such as “What does note 7 say?”. In Expected outcome, write what the user should get: “The reply tells the user what note 7 says, using the note’s actual text.”
4

Save and run

Click Save, then Run.
For the negative case, type “What parameters does read_note take?”, write the outcome “Lists read_note’s parameters from its description”, and add “No tools should be called” from Add assertion or action.The judge is Advisory by default, so a missed outcome shows on the result without failing the iteration. To make the outcome decide pass or fail, set the judge’s role to Required in Configure grading.A new case is a draft until you save it: leaving without saving adds nothing to the suite, and Run stays disabled. Save and Run are also disabled while a JSON field, such as tool arguments or a result schema, holds invalid JSON. The field is highlighted until you fix it.

Expected outcome

Expected outcome holds one goal sentence for the whole case. Write what the user should end up with, not how the agent gets there. The goal completion judge grades the finished run against the first of these that exists:
  1. The goal sentence you write here. Suite criteria also apply.
  2. The case’s route: the tools it expects, or that no tool should be called.
  3. The suite’s grading criteria.
  4. The user’s request itself. With nothing else to grade against, the judge caps the score at 0.85.
Turn on Skip the judge for this case to exclude this case from the judge. The switch appears when the suite’s judge is not off. See Configure grading for the judge’s model, threshold and role.

Actions and assertions

Add assertion or action lists two kinds of entry. Actions add a step to the run: Assertions grade the run. The kind decides where each applies: After this action grades the turn it sits in, and After the run grades the finished transcript once, listed under “After run checks”. Some kinds are marked “Advisory only”. See Assertions for every kind, its fields and where it applies.

Which tool should handle it?

Set a route only after reading traces shows that a path is wrong. Without one, the case is graded on its outcome and assertions. Set it from Add assertion or action: Prefer reaching a tool over an exact route: an exact route fails every correct run that takes an extra step. A case with no assertion and no expected outcome would check nothing, so Save stays disabled with “Choose which tool should handle it, or that no tool should be called.” On a read-only case, such as one managed in code, Matching options shows whether the route uses Reach the tool or Exact route.

Argument values

Under the default partial argument matching, "string", "number", "boolean", "object", "array", "null" or "any" matches any value of that type, so you can check a call’s shape without pinning a literal:

Negative cases

A negative case has the route No tool should be called and passes only if the model calls no tool. Pick prompts a careless model would turn into a tool call: A case that names no tool is “Any route”, not negative. If a negative case also carries an assertion that requires a tool call, from the case or the suite, the editor flags it: “This check conflicts with another check that requires a tool call.”

Multi-turn cases

Add a second User prompt from Add assertion or action at the end of the first turn. The run plays both prompts as one conversation. An assertion under a prompt sees only that turn: its tool calls, final message and tool errors. A “Tool was called with…” under the second prompt passes only if the call happens in the second turn, and “No tool errors” there reads “No tool errors so far”. To cover the whole conversation, put the assertion after the run. Removing a prompt with assertions under it asks first: they would move to the previous step and grade that turn.

Required and Advisory

Each assertion’s row shows its role. Assertions are Required by default; when your workspace supports editing roles, open the row to change it. A failed Required assertion under a prompt also stops the run: later steps do not run and show as Skipped. An Advisory miss never stops the run.

Inspect a past iteration

1

Open History

In the case editor, click History and pick a past iteration.
2

Read it

The form shows the case as it was for that iteration, read-only, under the banner “Viewing run · Iteration #N”. Changed means the case was edited since. Its route row names the answer in effect, such as “Reach read_note”, “Exact route: read_note → update_note”, No tool should be called, or “Any route — graded by the evaluators below”.
3

Return to editing

Click Edit case to go back to the current draft.

Multi-turn example

This case checks a two-prompt conversation: the user gets note 7, then says thanks, and nothing is deleted. The outcome covers the whole conversation; the one assertion is a guard on what must never happen.
  1. User prompt “What does note 7 say?”.
  2. A second User prompt “Thanks, that’s all.”, with “Tool was never called” for delete_note under it.
  3. Expected outcome: “The user learns what note 7 says. The thank-you gets a short reply and no further action.”

Next steps

Generate cases

Draft cases from your server’s tools or a test plan, then review them.

Assertions

Every assertion kind, its fields, and where it applies.

Run a suite

Run every case across clients and models.