Create agent test

Creates a saved test and an editable draft. The definition may be incomplete.
Use initialize_from to copy redacted content from a call or AI chat session.
Creation does not execute the test. The body may be wrapped in agent_test.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Create agent test

Creates a saved test and an editable draft. The definition may be incomplete.
Do not send definition fields together with initialize_from. Creation does not execute the test.
The same object may be wrapped in agent_test.

agent_ids
array of uuids
length ≤ 100

Omission preserves links. An empty list clears them. Null is invalid.

agent_ids
conversation_prefix
object | null

Messages that precede the reply under test. Required for a manual next_reply test.

draft
object

Optional nested definition. Top-level definition fields are equivalent.

initialize_from
object

Copies redacted suggested content into the saved draft. Supplying sources does not initialize content.
When sources is omitted, the import source is recorded as evidence.

integer | null
≥ 1
string | null
provenance
object | null
string | null
sources
array of objects
length ≤ 100

Optional call or AI chat-session evidence. Omitted preserves links; [] clears all links. Linking does not generate content.

sources
string | null
string
enum
Allowed:
tool_assertions
object | null

Expected tool invocation assertions, keyed by tool name.

tool_policy
object | null

Tool execution policy for this definition. This is not the test publication state.

variable_types
object

Declared type for each variable value: string, number, boolean, list, object, or null.

variable_values
object

Placeholder overrides applied when this definition runs. Keys match instruction placeholders.

version_policy
object

Which agent configuration this definition runs. This is not the test's draft or published state.

Responses

Callback
Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json