Skip to content
Docs
GitHub

List the Eval Builder's proposals for an agent

Preview

List an agent’s open eval case proposals, newest first, with the Eval Builder’s latest run.

Public APIRequires the evals feature flag

GET/v1/agents/{agent_id}/eval-proposals

See authentication for credentials and permissions.

agent_id
required
string

Prefixed public identifier

Responses

200Success

Success

Media typeapplication/json

An agent’s open proposals and its latest Eval Builder run.

object
data
required

Open proposals, newest first.

Array<object>

A case the Eval Builder suggests adding to one of the agent’s datasets.

object
agent_id
required

Agent the case is for.

string
case
required

The case as it would be created.

object
artifacts

Session files to capture after scoring completes.

Array<object> | null

Named session file to collect after an eval case completes.

object
name
required

Export key for this artifact (for example patch or log).

string
path
required

Absolute path in the session filesystem.

string
conversation

Input messages sent to the agent sequentially. May be empty when a simulated user opens the conversation.

Array<object>

A message to send to the agent during an eval case.

object
content
required

The text content to send.

string
description

Human-readable description. Safe to render in user-facing messages.

string | null
max_turns

Maximum agent turns before the case stops.

integer | null format: int32
name
required

Human-readable name. Safe to render in user-facing messages.

string
position

Display order within the eval.

integer | null format: int32
post

Verification messages sent after conversation completes and session idles.

Array<object> | null

A message to send to the agent during an eval case.

object
content
required

The text content to send.

string
scorers
required

Scoring rules applied to the case output.

Array
One of:

Final assistant message contains substring.

object
text
required
string
type
required
string
Allowed values: contains
weight
number format: double
simulated_user
One of:

A model that plays the user after the scripted messages, until it is done or reaches its turn limit. Not combined with post.

object
done_when

When the user stops: the simulator ends the conversation once this holds. Defaults to “the goal is met or clearly cannot be”.

string | null
goal
required

What the user wants from the conversation.

string
max_turns

Most messages the simulator sends (default 8, at most 30).

integer | null format: int32
>= 1 <= 30
model_id

Model that plays the user. Omitted: the organization’s default model.

string | null
persona
required

Who the user is, what they know and how they write.

string
virtual_user_id

Virtual user the simulator speaks as, so the agent sees that end user’s identity, connections and memory.

string | null
tags

Free-form tags attached to this resource.

Array<string> | null
target
One of:
One of:

Session creation parameters (mirrors CreateSessionRequest).

object
agent_id

Agent to work in this session.

string | null
harness_id

Harness for the session. If omitted, org default harness is used.

string | null
harness_name

Addressable harness name (alternative to harness_id).

string | null
max_iterations

Max LLM iterations per turn.

integer | null
model_id

LLM model override.

string | null
system_prompt

System prompt override (prepended to agent prompt).

string | null
type
required
string
Allowed values: session
timeout_seconds

Per-case timeout in seconds.

integer | null format: int32
tool_fixtures

Tools the case gives the agent, each answered with a canned response.

Array<object> | null

A tool the case gives the agent, answered with a canned response.

object
description

What the tool does, as the agent reads it.

string | null
name
required

Tool name the agent calls.

string
parameters

JSON Schema of the arguments. Omitted: an object with any fields.

response
required

What every call returns.

category
required

What part of the job it covers.

string
Allowed values: happy_path edge_case failure adversarial
created_at
required

When it was proposed.

string format: date-time
dismiss_note

Note left when it was dismissed.

string | null
id
required

Proposal identifier.

string
kind
required

simulated when a model plays the user, otherwise scripted.

string
name
required

Short name of the case.

string
reason
required

Why the Eval Builder suggests it, in one or two sentences.

string
source_session_ids
required

Sessions that inspired it, by public identifier.

Array<string>
status
required

Whether it is decided.

string
Allowed values: proposed accepted dismissed
latest_run
One of:

The most recent run, when there was one.

object
completed_at

When it finished.

string | null format: date-time
cost_usd

What the model call cost, when the provider reported it.

number | null format: double
error

Why it failed, in words for a person.

string | null
id
required

Run identifier.

string
model

Model that wrote the proposals.

string | null
proposals
required

Proposals it made.

integer format: int32
sessions_read
required

Production sessions it read.

integer format: int32
started_at
required

When it started.

string format: date-time
status
required

Where the run is.

string
Allowed values: running done failed unavailable

Example

{
"data": [
{
"agent_id": "agent_01933b5a000070008000000000000001",
"case": {
"artifacts": [
{
"name": "patch",
"path": "/workspace/fix.patch"
}
],
"conversation": [
{
"content": "Fix the failing test in src/lib.rs"
}
],
"description": "Agent fixes a failing unit test",
"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"
}
]
},
"category": "happy_path",
"id": "evalprop_01933b5a000070008000000000000001",
"kind": "simulated",
"name": "Refund over the approval limit",
"source_session_ids": [
"session_01933b5a000070008000000000000001"
],
"status": "proposed"
}
],
"latest_run": {
"cost_usd": 0.012,
"id": "evalbuild_01933b5a000070008000000000000001",
"model": "gpt-6.1-sol",
"proposals": 5,
"sessions_read": 6,
"status": "running"
}
}