Create an eval case
PreviewInspect agent quality, health, observers, semantic reports and notifications.
/v1/evals/{eval_id}/casesSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Request to create an eval case
object
Session files to capture after scoring completes.
Named session file to collect after an eval case completes.
object
Export key for this artifact (for example patch or log).
Example
patchAbsolute path in the session filesystem.
Example
/workspace/fix.patchExample
[ { "name": "patch", "path": "/workspace/fix.patch" }]Input messages sent to the agent sequentially. May be empty when a simulated user opens the conversation.
A message to send to the agent during an eval case.
object
The text content to send.
Example
Fix the failing test in src/lib.rsExample
[ { "content": "Fix the failing test in src/lib.rs" }]Human-readable description. Safe to render in user-facing messages.
Example
Agent fixes a failing unit testMaximum agent turns before the case stops.
Example
10Human-readable name. Safe to render in user-facing messages.
Example
fix-failing-testDisplay order within the eval.
Example
0Verification messages sent after conversation completes and session idles.
A message to send to the agent during an eval case.
object
The text content to send.
Example
Fix the failing test in src/lib.rsExample
[ { "content": "Run the tests again and report the result" }]Scoring rules applied to the case output.
Final assistant message contains substring.
object
Final assistant message does NOT contain substring.
object
Final assistant message matches regex pattern.
object
Agent called named tool at least min times. With
arguments_contain, only calls whose argument JSON contains that text
count, so a case can check what the agent asked a tool to do.
object
Agent did NOT call named tool.
object
Total tool calls within range.
object
Completed within N turns.
object
The agent spent at most max tokens (input plus output).
object
Example
20000Session filesystem file contains substring.
object
Final assistant message parses as JSON matching schema.
object
Citation faithfulness: the answer’s citations
must cover the claim and be verified as supported. Scored from the
TextAnnotations on the final message — pair with the
citation_verification capability so verdicts are present.
object
Minimum number of citations the answer must carry.
Example
1Minimum fraction of citations verified entailed to pass.
Example
0.8Relative weight of this scorer in the case’s weighted average.
Example
1Citation faithfulness judged by an LLM: each cited claim/source pair is
graded by a model, so the eval works even without the
citation_verification capability.
object
Minimum judged score [0,1] to pass.
Example
0.8Rubric override; a citation-faithfulness rubric is used when absent.
Example
Score the fraction of cited claims supported by their source.Relative weight of this scorer in the case’s weighted average.
Example
1The org’s chat model grades the answer against a rubric and returns a value from 0 to 1 with its reasoning.
object
Minimum judged value to pass.
Example
0.5What a good answer does and what a bad one does.
Example
Score 1 when the answer resolves the refund request with the policy's actual terms; 0 when it invents terms or deflects.A decision model answers one yes/no question about the answer; the
probability of yes is the value. Cheaper than judge and typed, so it
suits any check with a yes/no shape.
object
What a no means.
Minimum probability of yes to pass.
Example
0.5The yes/no question, asked about the user message, the answer and the tools used.
Example
Does the answer stay within the published refund policy?What a yes means, when the question alone is ambiguous.
Example
[ { "text": "tests pass", "type": "contains" }]A model that plays the user after the scripted messages, until it is
done or reaches its turn limit. Not combined with post.
object
When the user stops: the simulator ends the conversation once this holds. Defaults to “the goal is met or clearly cannot be”.
Example
The agent opened a refund ticket with the right order number.What the user wants from the conversation.
Example
Get the duplicate charge refunded, or a clear date when it will be.Most messages the simulator sends (default 8, at most 30).
Example
8Model that plays the user. Omitted: the organization’s default model.
Example
model_01933b5a00007000800000000000022cWho the user is, what they know and how they write.
Example
Small shop owner charged twice for the Pro plan. Writes short messages. Gives the order number ORD-48213 only when asked.Virtual user the simulator speaks as, so the agent sees that end user’s identity, connections and memory.
Example
identity_01933b5a000070008000000000000001Free-form tags attached to this resource.
Example
[ "regression", "nightly"]Session creation parameters (mirrors CreateSessionRequest).
object
Agent to work in this session.
Harness for the session. If omitted, org default harness is used.
Addressable harness name (alternative to harness_id).
Max LLM iterations per turn.
LLM model override.
System prompt override (prepended to agent prompt).
Reference to a deployed app.
object
Label-only target for externally-executed runs (e.g. imported from Mira).
Carries provider/model labels and opaque params instead of session setup:
external runs are ingested already-complete, so everruns never builds a
session from this. Mirrors a provider-agnostic (provider, model) pair.
object
Per-case timeout in seconds.
Example
120Tools the case gives the agent, each answered with a canned response.
A tool the case gives the agent, answered with a canned response.
object
What the tool does, as the agent reads it.
Example
Open a support ticketTool name the agent calls.
Example
create_ticketJSON Schema of the arguments. Omitted: an object with any fields.
What every call returns.
Responses
201Created
Created
A single test case within an eval.
object
Session files to collect after scoring completes.
Named session file to collect after an eval case completes.
object
Export key for this artifact (for example patch or log).
Absolute path in the session filesystem.
Input messages sent sequentially.
A message to send to the agent during an eval case.
object
The text content to send.
When the case was created.
Optional description of what the case checks.
External identifier (evalcase_<32-hex>).
Max agent turns (default: 10).
Case name.
Display order.
Verification messages sent after conversation completes and session idles. Scorers run after post messages complete (not after conversation).
A message to send to the agent during an eval case.
object
The text content to send.
Scoring rules.
Final assistant message contains substring.
object
Final assistant message does NOT contain substring.
object
Final assistant message matches regex pattern.
object
Agent called named tool at least min times. With
arguments_contain, only calls whose argument JSON contains that text
count, so a case can check what the agent asked a tool to do.
object
Agent did NOT call named tool.
object
Total tool calls within range.
object
Completed within N turns.
object
The agent spent at most max tokens (input plus output).
object
Session filesystem file contains substring.
object
Final assistant message parses as JSON matching schema.
object
Citation faithfulness: the answer’s citations
must cover the claim and be verified as supported. Scored from the
TextAnnotations on the final message — pair with the
citation_verification capability so verdicts are present.
object
Minimum number of citations the answer must carry.
Minimum fraction of citations verified entailed to pass.
Relative weight of this scorer in the case’s weighted average.
Citation faithfulness judged by an LLM: each cited claim/source pair is
graded by a model, so the eval works even without the
citation_verification capability.
object
Minimum judged score [0,1] to pass.
Rubric override; a citation-faithfulness rubric is used when absent.
Relative weight of this scorer in the case’s weighted average.
The org’s chat model grades the answer against a rubric and returns a value from 0 to 1 with its reasoning.
A decision model answers one yes/no question about the answer; the
probability of yes is the value. Cheaper than judge and typed, so it
suits any check with a yes/no shape.
object
What a no means.
Minimum probability of yes to pass.
The yes/no question, asked about the user message, the answer and the tools used.
What a yes means, when the question alone is ambiguous.
A model that plays the user after the scripted messages.
object
When the user stops: the simulator ends the conversation once this holds. Defaults to “the goal is met or clearly cannot be”.
What the user wants from the conversation.
Most messages the simulator sends (default 8, at most 30).
Model that plays the user. Omitted: the organization’s default model.
Who the user is, what they know and how they write.
Virtual user the simulator speaks as, so the agent sees that end user’s identity, connections and memory.
Free-form tags for filtering runs.
Session creation parameters (mirrors CreateSessionRequest).
object
Agent to work in this session.
Harness for the session. If omitted, org default harness is used.
Addressable harness name (alternative to harness_id).
Max LLM iterations per turn.
LLM model override.
System prompt override (prepended to agent prompt).
Reference to a deployed app.
object
Label-only target for externally-executed runs (e.g. imported from Mira).
Carries provider/model labels and opaque params instead of session setup:
external runs are ingested already-complete, so everruns never builds a
session from this. Mirrors a provider-agnostic (provider, model) pair.
object
Per-case timeout in seconds (default: 120).
Tools the case gives the agent, answered with canned responses.
A tool the case gives the agent, answered with a canned response.
object
What the tool does, as the agent reads it.
Tool name the agent calls.
JSON Schema of the arguments. Omitted: an object with any fields.
What every call returns.
When the case was last updated.
Example
{ "artifacts": [ { "name": "patch", "path": "/workspace/fix.patch" } ], "conversation": [ { "content": "Fix the failing test in src/lib.rs" } ], "created_at": "2026-01-15T10:30:00Z", "description": "Agent fixes a failing unit test", "id": "evalcase_01933b5a000070008000000000000001", "max_turns": 10, "name": "fix-failing-test", "position": 0, "post": [ { "content": "Run the tests again and report the result" } ], "scorers": [ { "text": "tests pass", "type": "contains" } ], "simulated_user": { "done_when": "The agent opened a refund ticket with the right order number.", "goal": "Get the duplicate charge refunded, or a clear date when it will be.", "max_turns": 8, "model_id": "model_01933b5a00007000800000000000022c", "persona": "Small shop owner charged twice for the Pro plan. Writes short messages. Gives the order number ORD-48213 only when asked.", "virtual_user_id": "identity_01933b5a000070008000000000000001" }, "tags": [ "regression", "nightly" ], "target": { "type": "session" }, "timeout_seconds": 120, "tool_fixtures": [ { "description": "Open a support ticket", "name": "create_ticket" } ], "updated_at": "2026-01-15T10:30:00Z"}