On this page
Create a test suite
Create simulation cases with caller behavior, assertions and action mocks for an agent.
Operation ID: test_suites.create.
Request
POST /api/v1/test-suites
- TypeScript SDK:
client.test_suites.create(path arguments usepath). - MCP tool:
sdk_client_callwithoperationId: "test_suites.create"(path arguments useinput.path). Legacy alias:test_suites_create. Connect to your authenticated/mcpendpoint with an API key for the same environment. - Minimum API key role: member.
- Idempotency: Required. Send
Idempotency-Key(TypeScript SDK:idempotencyKey) and keep it for retries.
Read resource IDs from earlier responses and use a key for the same environment.
Request example
Use the service-guide agent with its service_guide action, or adapt the mock action ID and assertions to your publication. The mock returns synthetic repair guidance instead of calling your backend. Validate the suite against the version you intend to test before starting a run.
Set CUMULUS_BASE_URL to your workspace API URL and CUMULUS_API_KEY to a key for that environment. Set IDEMPOTENCY_KEY to a new UUID for this action and keep it for retries. Example values are synthetic.
cURL
curl --fail-with-body -sS -X POST "${CUMULUS_BASE_URL%/}/api/v1/test-suites" \
-H "Authorization: Bearer $CUMULUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data '{
"agent_id": "service-guide",
"name": "Repair guidance regression",
"spec": {
"kind": "simulation",
"cases": [
{
"case_id": "repair_request",
"name": "Give repair guidance",
"language": "en",
"caller": {
"kind": "script",
"steps": [
{
"says": "I need help arranging a repair for the loading-bay door."
}
]
},
"mocks": [
{
"action_id": "service_guide",
"respond": {
"kind": "response",
"status": 200,
"body": {
"guidance": "For a repair, ask which equipment needs attention."
}
}
}
],
"assertions": [
{
"type": "agent_says",
"id": "mentions_repair",
"expect": "at_least_once",
"match": {
"patterns": [
"repair"
]
}
},
{
"type": "ended",
"id": "finishes_normally",
"reasons": [
"completed"
]
}
]
}
]
}
}'
TypeScript
import { Cumulus } from "@cumulus/sdk";
const baseUrl = process.env.CUMULUS_BASE_URL;
const apiKey = process.env.CUMULUS_API_KEY;
if (!baseUrl || !apiKey) throw new Error("Set CUMULUS_BASE_URL and CUMULUS_API_KEY");
const client = new Cumulus({ baseUrl, apiKey });
const idempotencyKey = process.env.IDEMPOTENCY_KEY;
if (!idempotencyKey) throw new Error("Set IDEMPOTENCY_KEY for this request");
const response = await client.test_suites.create({
"body": {
"agent_id": "service-guide",
"name": "Repair guidance regression",
"spec": {
"kind": "simulation",
"cases": [
{
"case_id": "repair_request",
"name": "Give repair guidance",
"language": "en",
"caller": {
"kind": "script",
"steps": [
{
"says": "I need help arranging a repair for the loading-bay door."
}
]
},
"mocks": [
{
"action_id": "service_guide",
"respond": {
"kind": "response",
"status": 200,
"body": {
"guidance": "For a repair, ask which equipment needs attention."
}
}
}
],
"assertions": [
{
"type": "agent_says",
"id": "mentions_repair",
"expect": "at_least_once",
"match": {
"patterns": [
"repair"
]
}
},
{
"type": "ended",
"id": "finishes_normally",
"reasons": [
"completed"
]
}
]
}
]
}
},
idempotencyKey,
});
Integration notes
Set spec.kind to simulation and define cases. Each case needs a lowercase-slug case_id, name, caller and assertions. Add dynamic variables, HTTP action mocks and an optional trial count.
Choose a caller with either {kind: "persona", goal, brief} or {kind: "script", steps: [{says}]}. Assertion IDs are your labels; node IDs come from drafts_get or publications_get.
Deterministic assertions include node_visited, node_not_visited, final_node, path, agent_says, tool_called, variable, ended, transfer and disposition. For agent_says, use expect: "never" | "at_least_once" and match: {patterns}. A rubric assertion uses a model judge.
Mocks answer customer HTTP actions by action_id. An unmocked customer HTTP action fails with unmocked_action before sending; built-in actions have simulated defaults. Run the suite with test_runs_create.
Input schema
Path, query and header parameters
Idempotency-Key
header parameter · Required.
Type: string. minLength: 1. maxLength: 256.
JSON request body
| Field | Type or values | Required | Description and limits |
|---|---|---|---|
agent_id | string | Required | Agent identifier in the environment selected by your API key. minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$. |
name | string | Required | minLength: 1. maxLength: 200. |
spec | object | Required | — |
| spec · variant 1 | object | — | Fields for this schema branch. |
spec.kind | "simulation" | Required | — |
spec.cases | array of object | Required | minItems: 1. maxItems: 100. |
spec.cases[].case_id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z0-9][a-z0-9_-]*$. |
spec.cases[].name | string | Required | minLength: 1. maxLength: 200. |
spec.cases[].tags | array of string | Optional | Default: []. maxItems: 10. |
spec.cases[].mode | "text" · "audio" | Optional | Default: "text". |
spec.cases[].language | "en" · "es" | Required | — |
spec.cases[].caller | object | Required | — |
| spec.cases[].caller · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].caller.kind | "persona" | Required | — |
spec.cases[].caller.goal | string | Required | minLength: 1. maxLength: 500. |
spec.cases[].caller.brief | string | Required | minLength: 1. maxLength: 4000. |
spec.cases[].caller.facts | object | Optional | Default: {}. |
spec.cases[].caller.facts.* | string | Optional | Additional keys are allowed. |
spec.cases[].caller.behavior | object | Optional | Default: {}. |
spec.cases[].caller.behavior.verbosity | "short" · "normal" · "rambling" | Optional | Default: "short". |
spec.cases[].caller.behavior.patience | integer | Optional | Default: 3. At least 1. At most 10. |
spec.cases[].caller.behavior.interrupts | "never" · "sometimes" · "often" | Optional | Default: "never". |
spec.cases[].caller.behavior.pauses | "never" · "sometimes" · "often" | Optional | Default: "never". |
spec.cases[].caller.behavior.backchannels | "never" · "sometimes" · "often" | Optional | Default: "never". |
| spec.cases[].caller · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].caller.kind | "script" | Required | — |
spec.cases[].caller.steps | array of object | Required | minItems: 1. maxItems: 30. |
spec.cases[].caller.steps[].says | string | Optional | minLength: 1. maxLength: 1000. |
spec.cases[].caller.steps[].keypad | object | Optional | — |
spec.cases[].caller.steps[].keypad.keys | string | Required | pattern: ^[0-9*#]{1,64}$. |
spec.cases[].caller.steps[].keypad.interval_ms | integer | Optional | Default: 120. At least 50. At most 1000. |
spec.cases[].caller.steps[].plays | object | Optional | — |
spec.cases[].caller.steps[].plays.kind | "screener_prompt" · "voicemail_greeting" | Required | — |
spec.cases[].caller.steps[].plays.text | string | Optional | minLength: 1. maxLength: 1000. |
spec.cases[].caller.steps[].plays.beep | boolean | Optional | Default: true. |
spec.cases[].caller.steps[].level_db | number | Optional | At least -60. At most 0. |
spec.cases[].caller.steps[].silence_ms | integer | Optional | At least 500. At most 600000. |
spec.cases[].caller.steps[].pause_before_ms | integer | Optional | At least 300. At most 5000. |
spec.cases[].caller.steps[].interrupt_at_ms | integer | Optional | At least 0. At most 15000. |
spec.cases[].caller.steps[].expect | object | Optional | — |
spec.cases[].caller.steps[].expect.lands | array of string | Required | maxItems: 20. |
spec.cases[].voice | object or null | Optional | Default: null. |
spec.cases[].voice.voice_id | string | Required in a non-null parent | minLength: 1. maxLength: 128. |
spec.cases[].voice.rate | number | Optional | Default: 1. At least 0.7. At most 1.3. |
spec.cases[].voice.channel | "pstn" · "wideband" | Optional | Default: "pstn". |
spec.cases[].voice.background | object | Optional | Default: {"kind":"none","snr_db":40}. |
spec.cases[].voice.background.kind | "none" · "room" · "car" · "street" · "babble" · "music" | Required in a non-null parent | — |
spec.cases[].voice.background.snr_db | number | Required in a non-null parent | At least 0. At most 40. |
spec.cases[].voice.echo | object or null | Optional | Default: null. |
spec.cases[].voice.echo.level_db | number | Required in a non-null parent | At least -40. At most -3. |
spec.cases[].voice.echo.delay_ms | integer | Required in a non-null parent | At least 20. At most 600. |
spec.cases[].dynamic_variables | object | Optional | Default: {}. |
spec.cases[].dynamic_variables.* | string | Optional | Additional keys are allowed. |
spec.cases[].mocks | array of object | Optional | Default: []. maxItems: 50. |
spec.cases[].mocks[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.cases[].mocks[].when | array of object | Optional | Default: []. maxItems: 10. |
spec.cases[].mocks[].when[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.cases[].mocks[].when[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].mocks[].when[].value | any JSON value | Optional | — |
spec.cases[].mocks[].respond | object | Required | — |
| spec.cases[].mocks[].respond · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "response" | Required | — |
spec.cases[].mocks[].respond.status | integer | Required | At least 100. At most 599. |
spec.cases[].mocks[].respond.body | any JSON value | Optional | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
| spec.cases[].mocks[].respond · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "error" | Required | — |
spec.cases[].mocks[].respond.error | "timeout" · "network" | Required | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
| spec.cases[].mocks[].respond · variant 3 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "transfer" | Required | — |
spec.cases[].mocks[].respond.outcome | "answered" · "busy" · "no_answer" · "failed" | Required | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
spec.cases[].mocks[].times | integer | Optional | Greater than 0. At most 100. |
spec.cases[].max_turns | integer | Optional | Default: 12. At least 1. At most 30. |
spec.cases[].timeout_ms | integer | Optional | At least 30000. At most 600000. |
spec.cases[].trials | integer | Optional | At least 1. At most 30. |
spec.cases[].pass_policy | "majority" · "all" | Optional | Default: "majority". |
spec.cases[].blocking | boolean | Optional | Default: true. |
spec.cases[].assertions | array of object | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "node_visited" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
spec.cases[].assertions[].match | "any" · "all" | Optional | Default: "any". |
spec.cases[].assertions[].by_turn | integer | Optional | At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "node_not_visited" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 3 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "path" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 50. |
spec.cases[].assertions[].order | "exact" · "subsequence" | Required | — |
| spec.cases[].assertions[] · variant 4 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "turn_lands" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].step | integer | Required | At least 1. At most 30. |
spec.cases[].assertions[].node_ids | array of string | Required | maxItems: 20. |
| spec.cases[].assertions[] · variant 5 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "final_node" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 6 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "ended" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].reasons | array of "completed" · "transferred" · "caller_hangup" · "max_turns" · "timeout" · "failed" · "cancelled" · "inactivity" | Required | minItems: 1. maxItems: 8. |
| spec.cases[].assertions[] · variant 7 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "transfer" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].expected | boolean | Required | — |
spec.cases[].assertions[].node_id | string | Optional | minLength: 1. maxLength: 128. |
| spec.cases[].assertions[] · variant 8 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "disposition" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].in | array of string | Required | minItems: 1. maxItems: 32. |
| spec.cases[].assertions[] · variant 9 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "tool_called" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].args | array of object | Optional | Default: []. maxItems: 10. |
spec.cases[].assertions[].args[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.cases[].assertions[].args[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].assertions[].args[].value | any JSON value | Optional | — |
spec.cases[].assertions[].before_node | string | Optional | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].times | object | Optional | Default: {"min":1}. |
spec.cases[].assertions[].times.min | integer | Required | At least 0. At most 9007199254740991. |
spec.cases[].assertions[].times.max | integer | Optional | At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 10 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "tool_not_called" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].action_id | string | Required | minLength: 1. maxLength: 128. |
| spec.cases[].assertions[] · variant 11 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "variable" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].name | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
spec.cases[].assertions[].matcher | object | Required | — |
spec.cases[].assertions[].matcher.op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].assertions[].matcher.value | any JSON value | Optional | — |
| spec.cases[].assertions[] · variant 12 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "agent_says" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].expect | "never" · "at_least_once" | Required | — |
spec.cases[].assertions[].match | object | Required | — |
| spec.cases[].assertions[].match · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].match.patterns | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[].match · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].match.lexicon | "debt_disclosure" | Required | — |
spec.cases[].assertions[].scope | object | Optional | Default: {}. |
spec.cases[].assertions[].scope.until_node | string | Optional | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].scope.from_turn | integer | Optional | At least 0. At most 9007199254740991. |
spec.cases[].assertions[].scope.until_step | integer | Optional | At least 1. At most 30. |
| spec.cases[].assertions[] · variant 13 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "agent_language" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].language | "en" · "es" | Required | — |
spec.cases[].assertions[].min_share | number | Required | At least 0. At most 1. |
spec.cases[].assertions[].after | "start" · "caller_switch" | Required | — |
| spec.cases[].assertions[] · variant 14 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "rubric" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].criteria | array of object | Required | minItems: 1. maxItems: 12. |
spec.cases[].assertions[].criteria[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z][a-z0-9_]*$. |
spec.cases[].assertions[].criteria[].question | string | Required | minLength: 1. maxLength: 500. |
spec.cases[].assertions[].criteria[].scale | "binary" · "1-5" | Optional | Default: "binary". |
spec.cases[].assertions[].criteria[].weight | integer | Optional | Default: 1. At least 1. At most 10. |
spec.cases[].assertions[].criteria[].required | boolean | Optional | Default: false. |
spec.cases[].assertions[].criteria[].allow_na | boolean | Optional | Default: false. |
spec.cases[].assertions[].threshold | number | Required | At least 0. At most 1. |
| spec.cases[].assertions[] · variant 15 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "response_latency" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].p50_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.cases[].assertions[].p95_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.cases[].assertions[].max_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 16 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "greeting_latency" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_ms | integer | Required | Greater than 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 17 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "no_cut_off" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max | integer | Optional | Default: 0. At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 18 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "barge_in" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_stop_ms | integer | Optional | Default: 1000. At least 100. At most 5000. |
| spec.cases[].assertions[] · variant 19 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "no_false_yield" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
| spec.cases[].assertions[] · variant 20 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "answer_verdict" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].contact | array of "human" · "voicemail" · "ivr" · "unknown" | Required | minItems: 1. maxItems: 4. |
spec.cases[].assertions[].reasons | array of string | Optional | minItems: 1. maxItems: 10. |
| spec.cases[].assertions[] · variant 21 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "talk_over" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_ms | integer | Required | At least 0. At most 30000. |
| spec · variant 2 | object | — | Fields for this schema branch. |
spec.kind | "replay" | Required | — |
spec.source | object | Required | — |
| spec.source · variant 1 | object | — | Fields for this schema branch. |
spec.source.kind | "selector" | Required | — |
spec.source.window_days | integer | Required | At least 1. At most 90. |
spec.source.versions | array of integer | Optional | maxItems: 20. |
spec.source.contact | array of "human" · "voicemail" · "ivr" · "unknown" | Optional | Default: ["human"]. minItems: 1. |
spec.source.dispositions | array of string | Optional | maxItems: 32. |
spec.source.min_caller_turns | integer | Optional | Default: 1. At least 1. At most 9007199254740991. |
spec.source.sample | "latest" · "stratified_by_disposition" | Optional | Default: "latest". |
spec.source.limit | integer | Required | Maximum items to return in this page. At least 1. At most 200. |
| spec.source · variant 2 | object | — | Fields for this schema branch. |
spec.source.kind | "runs" | Required | — |
spec.source.run_ids | array of string (uuid) | Required | minItems: 1. maxItems: 200. |
spec.trials | integer | Optional | Default: 1. At least 1. At most 3. |
spec.population | array of object | Required | minItems: 1. maxItems: 5. |
| spec.population[] · variant 1 | object | — | Fields for this schema branch. |
spec.population[].type | "regression" | Required | — |
spec.population[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.population[].metric | "outcome_agreement" · "edge_agreement" | Required | — |
spec.population[].tolerance_per_30 | integer | Optional | Default: 1. At least 0. At most 30. |
| spec.population[] · variant 2 | object | — | Fields for this schema branch. |
spec.population[].type | "judged_divergence" | Required | — |
spec.population[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.population[].max_judged_worse | integer | Required | At least 0. At most 9007199254740991. |
spec.every_case | array of object | Optional | Default: []. maxItems: 10. |
| spec.every_case[] · variant 1 | object | — | Fields for this schema branch. |
spec.every_case[].type | "node_visited" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
spec.every_case[].match | "any" · "all" | Optional | Default: "any". |
spec.every_case[].by_turn | integer | Optional | At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 2 | object | — | Fields for this schema branch. |
spec.every_case[].type | "node_not_visited" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[] · variant 3 | object | — | Fields for this schema branch. |
spec.every_case[].type | "path" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 50. |
spec.every_case[].order | "exact" · "subsequence" | Required | — |
| spec.every_case[] · variant 4 | object | — | Fields for this schema branch. |
spec.every_case[].type | "turn_lands" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].step | integer | Required | At least 1. At most 30. |
spec.every_case[].node_ids | array of string | Required | maxItems: 20. |
| spec.every_case[] · variant 5 | object | — | Fields for this schema branch. |
spec.every_case[].type | "final_node" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[] · variant 6 | object | — | Fields for this schema branch. |
spec.every_case[].type | "ended" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].reasons | array of "completed" · "transferred" · "caller_hangup" · "max_turns" · "timeout" · "failed" · "cancelled" · "inactivity" | Required | minItems: 1. maxItems: 8. |
| spec.every_case[] · variant 7 | object | — | Fields for this schema branch. |
spec.every_case[].type | "transfer" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].expected | boolean | Required | — |
spec.every_case[].node_id | string | Optional | minLength: 1. maxLength: 128. |
| spec.every_case[] · variant 8 | object | — | Fields for this schema branch. |
spec.every_case[].type | "disposition" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].in | array of string | Required | minItems: 1. maxItems: 32. |
| spec.every_case[] · variant 9 | object | — | Fields for this schema branch. |
spec.every_case[].type | "tool_called" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.every_case[].args | array of object | Optional | Default: []. maxItems: 10. |
spec.every_case[].args[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.every_case[].args[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.every_case[].args[].value | any JSON value | Optional | — |
spec.every_case[].before_node | string | Optional | minLength: 1. maxLength: 128. |
spec.every_case[].times | object | Optional | Default: {"min":1}. |
spec.every_case[].times.min | integer | Required | At least 0. At most 9007199254740991. |
spec.every_case[].times.max | integer | Optional | At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 10 | object | — | Fields for this schema branch. |
spec.every_case[].type | "tool_not_called" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].action_id | string | Required | minLength: 1. maxLength: 128. |
| spec.every_case[] · variant 11 | object | — | Fields for this schema branch. |
spec.every_case[].type | "variable" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].name | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
spec.every_case[].matcher | object | Required | — |
spec.every_case[].matcher.op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.every_case[].matcher.value | any JSON value | Optional | — |
| spec.every_case[] · variant 12 | object | — | Fields for this schema branch. |
spec.every_case[].type | "agent_says" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].expect | "never" · "at_least_once" | Required | — |
spec.every_case[].match | object | Required | — |
| spec.every_case[].match · variant 1 | object | — | Fields for this schema branch. |
spec.every_case[].match.patterns | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[].match · variant 2 | object | — | Fields for this schema branch. |
spec.every_case[].match.lexicon | "debt_disclosure" | Required | — |
spec.every_case[].scope | object | Optional | Default: {}. |
spec.every_case[].scope.until_node | string | Optional | minLength: 1. maxLength: 128. |
spec.every_case[].scope.from_turn | integer | Optional | At least 0. At most 9007199254740991. |
spec.every_case[].scope.until_step | integer | Optional | At least 1. At most 30. |
| spec.every_case[] · variant 13 | object | — | Fields for this schema branch. |
spec.every_case[].type | "agent_language" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].language | "en" · "es" | Required | — |
spec.every_case[].min_share | number | Required | At least 0. At most 1. |
spec.every_case[].after | "start" · "caller_switch" | Required | — |
| spec.every_case[] · variant 14 | object | — | Fields for this schema branch. |
spec.every_case[].type | "rubric" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].criteria | array of object | Required | minItems: 1. maxItems: 12. |
spec.every_case[].criteria[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z][a-z0-9_]*$. |
spec.every_case[].criteria[].question | string | Required | minLength: 1. maxLength: 500. |
spec.every_case[].criteria[].scale | "binary" · "1-5" | Optional | Default: "binary". |
spec.every_case[].criteria[].weight | integer | Optional | Default: 1. At least 1. At most 10. |
spec.every_case[].criteria[].required | boolean | Optional | Default: false. |
spec.every_case[].criteria[].allow_na | boolean | Optional | Default: false. |
spec.every_case[].threshold | number | Required | At least 0. At most 1. |
| spec.every_case[] · variant 15 | object | — | Fields for this schema branch. |
spec.every_case[].type | "response_latency" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].p50_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.every_case[].p95_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.every_case[].max_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
| spec.every_case[] · variant 16 | object | — | Fields for this schema branch. |
spec.every_case[].type | "greeting_latency" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_ms | integer | Required | Greater than 0. At most 9007199254740991. |
| spec.every_case[] · variant 17 | object | — | Fields for this schema branch. |
spec.every_case[].type | "no_cut_off" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max | integer | Optional | Default: 0. At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 18 | object | — | Fields for this schema branch. |
spec.every_case[].type | "barge_in" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_stop_ms | integer | Optional | Default: 1000. At least 100. At most 5000. |
| spec.every_case[] · variant 19 | object | — | Fields for this schema branch. |
spec.every_case[].type | "no_false_yield" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
| spec.every_case[] · variant 20 | object | — | Fields for this schema branch. |
spec.every_case[].type | "answer_verdict" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].contact | array of "human" · "voicemail" · "ivr" · "unknown" | Required | minItems: 1. maxItems: 4. |
spec.every_case[].reasons | array of string | Optional | minItems: 1. maxItems: 10. |
| spec.every_case[] · variant 21 | object | — | Fields for this schema branch. |
spec.every_case[].type | "talk_over" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_ms | integer | Required | At least 0. At most 30000. |
Complete OpenAPI schema
{
"parameters": [
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestSuitesCreateRequest"
}
}
}
}
}
Responses
HTTP 200
Create a test suite on an agent (201; an idempotent replay returns 200)
application/json
| Field | Type or values | Required | Description and limits |
|---|---|---|---|
owner_id | string | Required | minLength: 1. |
environment | string | Required | minLength: 1. |
tenant_id | string (uuid) | Required | pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
suite_id | string (uuid) | Required | Identifier of the test suite. pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
agent_id | string | Required | Agent identifier in the environment selected by your API key. minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$. |
name | string | Required | minLength: 1. maxLength: 200. |
required | boolean | Required | — |
revision | integer | Required | Greater than 0. At most 2147483647. |
digest | string | Required | pattern: ^sha256:[a-f0-9]{64}$. |
spec | object | Required | — |
| spec · variant 1 | object | — | Fields for this schema branch. |
spec.kind | "simulation" | Required | — |
spec.cases | array of object | Required | minItems: 1. maxItems: 100. |
spec.cases[].case_id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z0-9][a-z0-9_-]*$. |
spec.cases[].name | string | Required | minLength: 1. maxLength: 200. |
spec.cases[].tags | array of string | Optional | Default: []. maxItems: 10. |
spec.cases[].mode | "text" · "audio" | Optional | Default: "text". |
spec.cases[].language | "en" · "es" | Required | — |
spec.cases[].caller | object | Required | — |
| spec.cases[].caller · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].caller.kind | "persona" | Required | — |
spec.cases[].caller.goal | string | Required | minLength: 1. maxLength: 500. |
spec.cases[].caller.brief | string | Required | minLength: 1. maxLength: 4000. |
spec.cases[].caller.facts | object | Optional | Default: {}. |
spec.cases[].caller.facts.* | string | Optional | Additional keys are allowed. |
spec.cases[].caller.behavior | object | Optional | Default: {}. |
spec.cases[].caller.behavior.verbosity | "short" · "normal" · "rambling" | Optional | Default: "short". |
spec.cases[].caller.behavior.patience | integer | Optional | Default: 3. At least 1. At most 10. |
spec.cases[].caller.behavior.interrupts | "never" · "sometimes" · "often" | Optional | Default: "never". |
spec.cases[].caller.behavior.pauses | "never" · "sometimes" · "often" | Optional | Default: "never". |
spec.cases[].caller.behavior.backchannels | "never" · "sometimes" · "often" | Optional | Default: "never". |
| spec.cases[].caller · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].caller.kind | "script" | Required | — |
spec.cases[].caller.steps | array of object | Required | minItems: 1. maxItems: 30. |
spec.cases[].caller.steps[].says | string | Optional | minLength: 1. maxLength: 1000. |
spec.cases[].caller.steps[].keypad | object | Optional | — |
spec.cases[].caller.steps[].keypad.keys | string | Required | pattern: ^[0-9*#]{1,64}$. |
spec.cases[].caller.steps[].keypad.interval_ms | integer | Optional | Default: 120. At least 50. At most 1000. |
spec.cases[].caller.steps[].plays | object | Optional | — |
spec.cases[].caller.steps[].plays.kind | "screener_prompt" · "voicemail_greeting" | Required | — |
spec.cases[].caller.steps[].plays.text | string | Optional | minLength: 1. maxLength: 1000. |
spec.cases[].caller.steps[].plays.beep | boolean | Optional | Default: true. |
spec.cases[].caller.steps[].level_db | number | Optional | At least -60. At most 0. |
spec.cases[].caller.steps[].silence_ms | integer | Optional | At least 500. At most 600000. |
spec.cases[].caller.steps[].pause_before_ms | integer | Optional | At least 300. At most 5000. |
spec.cases[].caller.steps[].interrupt_at_ms | integer | Optional | At least 0. At most 15000. |
spec.cases[].caller.steps[].expect | object | Optional | — |
spec.cases[].caller.steps[].expect.lands | array of string | Required | maxItems: 20. |
spec.cases[].voice | object or null | Optional | Default: null. |
spec.cases[].voice.voice_id | string | Required in a non-null parent | minLength: 1. maxLength: 128. |
spec.cases[].voice.rate | number | Optional | Default: 1. At least 0.7. At most 1.3. |
spec.cases[].voice.channel | "pstn" · "wideband" | Optional | Default: "pstn". |
spec.cases[].voice.background | object | Optional | Default: {"kind":"none","snr_db":40}. |
spec.cases[].voice.background.kind | "none" · "room" · "car" · "street" · "babble" · "music" | Required in a non-null parent | — |
spec.cases[].voice.background.snr_db | number | Required in a non-null parent | At least 0. At most 40. |
spec.cases[].voice.echo | object or null | Optional | Default: null. |
spec.cases[].voice.echo.level_db | number | Required in a non-null parent | At least -40. At most -3. |
spec.cases[].voice.echo.delay_ms | integer | Required in a non-null parent | At least 20. At most 600. |
spec.cases[].dynamic_variables | object | Optional | Default: {}. |
spec.cases[].dynamic_variables.* | string | Optional | Additional keys are allowed. |
spec.cases[].mocks | array of object | Optional | Default: []. maxItems: 50. |
spec.cases[].mocks[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.cases[].mocks[].when | array of object | Optional | Default: []. maxItems: 10. |
spec.cases[].mocks[].when[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.cases[].mocks[].when[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].mocks[].when[].value | any JSON value | Optional | — |
spec.cases[].mocks[].respond | object | Required | — |
| spec.cases[].mocks[].respond · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "response" | Required | — |
spec.cases[].mocks[].respond.status | integer | Required | At least 100. At most 599. |
spec.cases[].mocks[].respond.body | any JSON value | Optional | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
| spec.cases[].mocks[].respond · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "error" | Required | — |
spec.cases[].mocks[].respond.error | "timeout" · "network" | Required | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
| spec.cases[].mocks[].respond · variant 3 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "transfer" | Required | — |
spec.cases[].mocks[].respond.outcome | "answered" · "busy" · "no_answer" · "failed" | Required | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
spec.cases[].mocks[].times | integer | Optional | Greater than 0. At most 100. |
spec.cases[].max_turns | integer | Optional | Default: 12. At least 1. At most 30. |
spec.cases[].timeout_ms | integer | Optional | At least 30000. At most 600000. |
spec.cases[].trials | integer | Optional | At least 1. At most 30. |
spec.cases[].pass_policy | "majority" · "all" | Optional | Default: "majority". |
spec.cases[].blocking | boolean | Optional | Default: true. |
spec.cases[].assertions | array of object | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "node_visited" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
spec.cases[].assertions[].match | "any" · "all" | Optional | Default: "any". |
spec.cases[].assertions[].by_turn | integer | Optional | At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "node_not_visited" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 3 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "path" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 50. |
spec.cases[].assertions[].order | "exact" · "subsequence" | Required | — |
| spec.cases[].assertions[] · variant 4 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "turn_lands" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].step | integer | Required | At least 1. At most 30. |
spec.cases[].assertions[].node_ids | array of string | Required | maxItems: 20. |
| spec.cases[].assertions[] · variant 5 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "final_node" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 6 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "ended" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].reasons | array of "completed" · "transferred" · "caller_hangup" · "max_turns" · "timeout" · "failed" · "cancelled" · "inactivity" | Required | minItems: 1. maxItems: 8. |
| spec.cases[].assertions[] · variant 7 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "transfer" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].expected | boolean | Required | — |
spec.cases[].assertions[].node_id | string | Optional | minLength: 1. maxLength: 128. |
| spec.cases[].assertions[] · variant 8 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "disposition" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].in | array of string | Required | minItems: 1. maxItems: 32. |
| spec.cases[].assertions[] · variant 9 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "tool_called" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].args | array of object | Optional | Default: []. maxItems: 10. |
spec.cases[].assertions[].args[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.cases[].assertions[].args[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].assertions[].args[].value | any JSON value | Optional | — |
spec.cases[].assertions[].before_node | string | Optional | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].times | object | Optional | Default: {"min":1}. |
spec.cases[].assertions[].times.min | integer | Required | At least 0. At most 9007199254740991. |
spec.cases[].assertions[].times.max | integer | Optional | At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 10 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "tool_not_called" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].action_id | string | Required | minLength: 1. maxLength: 128. |
| spec.cases[].assertions[] · variant 11 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "variable" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].name | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
spec.cases[].assertions[].matcher | object | Required | — |
spec.cases[].assertions[].matcher.op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].assertions[].matcher.value | any JSON value | Optional | — |
| spec.cases[].assertions[] · variant 12 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "agent_says" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].expect | "never" · "at_least_once" | Required | — |
spec.cases[].assertions[].match | object | Required | — |
| spec.cases[].assertions[].match · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].match.patterns | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[].match · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].match.lexicon | "debt_disclosure" | Required | — |
spec.cases[].assertions[].scope | object | Optional | Default: {}. |
spec.cases[].assertions[].scope.until_node | string | Optional | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].scope.from_turn | integer | Optional | At least 0. At most 9007199254740991. |
spec.cases[].assertions[].scope.until_step | integer | Optional | At least 1. At most 30. |
| spec.cases[].assertions[] · variant 13 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "agent_language" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].language | "en" · "es" | Required | — |
spec.cases[].assertions[].min_share | number | Required | At least 0. At most 1. |
spec.cases[].assertions[].after | "start" · "caller_switch" | Required | — |
| spec.cases[].assertions[] · variant 14 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "rubric" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].criteria | array of object | Required | minItems: 1. maxItems: 12. |
spec.cases[].assertions[].criteria[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z][a-z0-9_]*$. |
spec.cases[].assertions[].criteria[].question | string | Required | minLength: 1. maxLength: 500. |
spec.cases[].assertions[].criteria[].scale | "binary" · "1-5" | Optional | Default: "binary". |
spec.cases[].assertions[].criteria[].weight | integer | Optional | Default: 1. At least 1. At most 10. |
spec.cases[].assertions[].criteria[].required | boolean | Optional | Default: false. |
spec.cases[].assertions[].criteria[].allow_na | boolean | Optional | Default: false. |
spec.cases[].assertions[].threshold | number | Required | At least 0. At most 1. |
| spec.cases[].assertions[] · variant 15 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "response_latency" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].p50_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.cases[].assertions[].p95_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.cases[].assertions[].max_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 16 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "greeting_latency" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_ms | integer | Required | Greater than 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 17 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "no_cut_off" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max | integer | Optional | Default: 0. At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 18 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "barge_in" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_stop_ms | integer | Optional | Default: 1000. At least 100. At most 5000. |
| spec.cases[].assertions[] · variant 19 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "no_false_yield" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
| spec.cases[].assertions[] · variant 20 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "answer_verdict" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].contact | array of "human" · "voicemail" · "ivr" · "unknown" | Required | minItems: 1. maxItems: 4. |
spec.cases[].assertions[].reasons | array of string | Optional | minItems: 1. maxItems: 10. |
| spec.cases[].assertions[] · variant 21 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "talk_over" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_ms | integer | Required | At least 0. At most 30000. |
| spec · variant 2 | object | — | Fields for this schema branch. |
spec.kind | "replay" | Required | — |
spec.source | object | Required | — |
| spec.source · variant 1 | object | — | Fields for this schema branch. |
spec.source.kind | "selector" | Required | — |
spec.source.window_days | integer | Required | At least 1. At most 90. |
spec.source.versions | array of integer | Optional | maxItems: 20. |
spec.source.contact | array of "human" · "voicemail" · "ivr" · "unknown" | Optional | Default: ["human"]. minItems: 1. |
spec.source.dispositions | array of string | Optional | maxItems: 32. |
spec.source.min_caller_turns | integer | Optional | Default: 1. At least 1. At most 9007199254740991. |
spec.source.sample | "latest" · "stratified_by_disposition" | Optional | Default: "latest". |
spec.source.limit | integer | Required | Maximum items to return in this page. At least 1. At most 200. |
| spec.source · variant 2 | object | — | Fields for this schema branch. |
spec.source.kind | "runs" | Required | — |
spec.source.run_ids | array of string (uuid) | Required | minItems: 1. maxItems: 200. |
spec.trials | integer | Optional | Default: 1. At least 1. At most 3. |
spec.population | array of object | Required | minItems: 1. maxItems: 5. |
| spec.population[] · variant 1 | object | — | Fields for this schema branch. |
spec.population[].type | "regression" | Required | — |
spec.population[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.population[].metric | "outcome_agreement" · "edge_agreement" | Required | — |
spec.population[].tolerance_per_30 | integer | Optional | Default: 1. At least 0. At most 30. |
| spec.population[] · variant 2 | object | — | Fields for this schema branch. |
spec.population[].type | "judged_divergence" | Required | — |
spec.population[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.population[].max_judged_worse | integer | Required | At least 0. At most 9007199254740991. |
spec.every_case | array of object | Optional | Default: []. maxItems: 10. |
| spec.every_case[] · variant 1 | object | — | Fields for this schema branch. |
spec.every_case[].type | "node_visited" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
spec.every_case[].match | "any" · "all" | Optional | Default: "any". |
spec.every_case[].by_turn | integer | Optional | At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 2 | object | — | Fields for this schema branch. |
spec.every_case[].type | "node_not_visited" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[] · variant 3 | object | — | Fields for this schema branch. |
spec.every_case[].type | "path" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 50. |
spec.every_case[].order | "exact" · "subsequence" | Required | — |
| spec.every_case[] · variant 4 | object | — | Fields for this schema branch. |
spec.every_case[].type | "turn_lands" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].step | integer | Required | At least 1. At most 30. |
spec.every_case[].node_ids | array of string | Required | maxItems: 20. |
| spec.every_case[] · variant 5 | object | — | Fields for this schema branch. |
spec.every_case[].type | "final_node" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[] · variant 6 | object | — | Fields for this schema branch. |
spec.every_case[].type | "ended" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].reasons | array of "completed" · "transferred" · "caller_hangup" · "max_turns" · "timeout" · "failed" · "cancelled" · "inactivity" | Required | minItems: 1. maxItems: 8. |
| spec.every_case[] · variant 7 | object | — | Fields for this schema branch. |
spec.every_case[].type | "transfer" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].expected | boolean | Required | — |
spec.every_case[].node_id | string | Optional | minLength: 1. maxLength: 128. |
| spec.every_case[] · variant 8 | object | — | Fields for this schema branch. |
spec.every_case[].type | "disposition" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].in | array of string | Required | minItems: 1. maxItems: 32. |
| spec.every_case[] · variant 9 | object | — | Fields for this schema branch. |
spec.every_case[].type | "tool_called" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.every_case[].args | array of object | Optional | Default: []. maxItems: 10. |
spec.every_case[].args[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.every_case[].args[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.every_case[].args[].value | any JSON value | Optional | — |
spec.every_case[].before_node | string | Optional | minLength: 1. maxLength: 128. |
spec.every_case[].times | object | Optional | Default: {"min":1}. |
spec.every_case[].times.min | integer | Required | At least 0. At most 9007199254740991. |
spec.every_case[].times.max | integer | Optional | At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 10 | object | — | Fields for this schema branch. |
spec.every_case[].type | "tool_not_called" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].action_id | string | Required | minLength: 1. maxLength: 128. |
| spec.every_case[] · variant 11 | object | — | Fields for this schema branch. |
spec.every_case[].type | "variable" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].name | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
spec.every_case[].matcher | object | Required | — |
spec.every_case[].matcher.op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.every_case[].matcher.value | any JSON value | Optional | — |
| spec.every_case[] · variant 12 | object | — | Fields for this schema branch. |
spec.every_case[].type | "agent_says" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].expect | "never" · "at_least_once" | Required | — |
spec.every_case[].match | object | Required | — |
| spec.every_case[].match · variant 1 | object | — | Fields for this schema branch. |
spec.every_case[].match.patterns | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[].match · variant 2 | object | — | Fields for this schema branch. |
spec.every_case[].match.lexicon | "debt_disclosure" | Required | — |
spec.every_case[].scope | object | Optional | Default: {}. |
spec.every_case[].scope.until_node | string | Optional | minLength: 1. maxLength: 128. |
spec.every_case[].scope.from_turn | integer | Optional | At least 0. At most 9007199254740991. |
spec.every_case[].scope.until_step | integer | Optional | At least 1. At most 30. |
| spec.every_case[] · variant 13 | object | — | Fields for this schema branch. |
spec.every_case[].type | "agent_language" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].language | "en" · "es" | Required | — |
spec.every_case[].min_share | number | Required | At least 0. At most 1. |
spec.every_case[].after | "start" · "caller_switch" | Required | — |
| spec.every_case[] · variant 14 | object | — | Fields for this schema branch. |
spec.every_case[].type | "rubric" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].criteria | array of object | Required | minItems: 1. maxItems: 12. |
spec.every_case[].criteria[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z][a-z0-9_]*$. |
spec.every_case[].criteria[].question | string | Required | minLength: 1. maxLength: 500. |
spec.every_case[].criteria[].scale | "binary" · "1-5" | Optional | Default: "binary". |
spec.every_case[].criteria[].weight | integer | Optional | Default: 1. At least 1. At most 10. |
spec.every_case[].criteria[].required | boolean | Optional | Default: false. |
spec.every_case[].criteria[].allow_na | boolean | Optional | Default: false. |
spec.every_case[].threshold | number | Required | At least 0. At most 1. |
| spec.every_case[] · variant 15 | object | — | Fields for this schema branch. |
spec.every_case[].type | "response_latency" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].p50_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.every_case[].p95_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.every_case[].max_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
| spec.every_case[] · variant 16 | object | — | Fields for this schema branch. |
spec.every_case[].type | "greeting_latency" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_ms | integer | Required | Greater than 0. At most 9007199254740991. |
| spec.every_case[] · variant 17 | object | — | Fields for this schema branch. |
spec.every_case[].type | "no_cut_off" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max | integer | Optional | Default: 0. At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 18 | object | — | Fields for this schema branch. |
spec.every_case[].type | "barge_in" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_stop_ms | integer | Optional | Default: 1000. At least 100. At most 5000. |
| spec.every_case[] · variant 19 | object | — | Fields for this schema branch. |
spec.every_case[].type | "no_false_yield" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
| spec.every_case[] · variant 20 | object | — | Fields for this schema branch. |
spec.every_case[].type | "answer_verdict" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].contact | array of "human" · "voicemail" · "ivr" · "unknown" | Required | minItems: 1. maxItems: 4. |
spec.every_case[].reasons | array of string | Optional | minItems: 1. maxItems: 10. |
| spec.every_case[] · variant 21 | object | — | Fields for this schema branch. |
spec.every_case[].type | "talk_over" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_ms | integer | Required | At least 0. At most 30000. |
created_by | object | Required | — |
| created_by · variant 1 | object | — | Fields for this schema branch. |
created_by.owner_id | string | Required | minLength: 1. |
created_by.environment | string | Required | minLength: 1. |
created_by.kind | "user" | Required | — |
created_by.id | string (uuid) | Required | pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
| created_by · variant 2 | object | — | Fields for this schema branch. |
created_by.owner_id | string | Required | minLength: 1. |
created_by.environment | string | Required | minLength: 1. |
created_by.kind | "api_key" | Required | — |
created_by.id | string (uuid) | Required | pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
| created_by · variant 3 | object | — | Fields for this schema branch. |
created_by.owner_id | string | Required | minLength: 1. |
created_by.environment | string | Required | minLength: 1. |
created_by.kind | "system" | Required | — |
created_by.id | string | Required | minLength: 1. maxLength: 256. |
created_at | string (date-time) | Required | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
updated_at | string (date-time) | Required | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
archived_at | string (date-time) or null | Required | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
last_run | object or null | Required | — |
last_run.test_run_id | string (uuid) | Required in a non-null parent | Identifier of the test run whose progress or results you are reading. pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
last_run.version | integer | Required in a non-null parent | At least 0. At most 2147483647. |
last_run.state | "queued" · "running" · "completed" · "cancelled" | Required in a non-null parent | — |
last_run.verdict | "passed" · "failed" · "errored" or null | Required in a non-null parent | — |
last_run.created_at | string (date-time) | Required in a non-null parent | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
last_run.finished_at | string (date-time) or null | Required in a non-null parent | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
flaky_case_ids | array of string | Required | maxItems: 100. |
HTTP 201
Create a test suite on an agent (201; an idempotent replay returns 200)
application/json
| Field | Type or values | Required | Description and limits |
|---|---|---|---|
owner_id | string | Required | minLength: 1. |
environment | string | Required | minLength: 1. |
tenant_id | string (uuid) | Required | pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
suite_id | string (uuid) | Required | Identifier of the test suite. pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
agent_id | string | Required | Agent identifier in the environment selected by your API key. minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$. |
name | string | Required | minLength: 1. maxLength: 200. |
required | boolean | Required | — |
revision | integer | Required | Greater than 0. At most 2147483647. |
digest | string | Required | pattern: ^sha256:[a-f0-9]{64}$. |
spec | object | Required | — |
| spec · variant 1 | object | — | Fields for this schema branch. |
spec.kind | "simulation" | Required | — |
spec.cases | array of object | Required | minItems: 1. maxItems: 100. |
spec.cases[].case_id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z0-9][a-z0-9_-]*$. |
spec.cases[].name | string | Required | minLength: 1. maxLength: 200. |
spec.cases[].tags | array of string | Optional | Default: []. maxItems: 10. |
spec.cases[].mode | "text" · "audio" | Optional | Default: "text". |
spec.cases[].language | "en" · "es" | Required | — |
spec.cases[].caller | object | Required | — |
| spec.cases[].caller · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].caller.kind | "persona" | Required | — |
spec.cases[].caller.goal | string | Required | minLength: 1. maxLength: 500. |
spec.cases[].caller.brief | string | Required | minLength: 1. maxLength: 4000. |
spec.cases[].caller.facts | object | Optional | Default: {}. |
spec.cases[].caller.facts.* | string | Optional | Additional keys are allowed. |
spec.cases[].caller.behavior | object | Optional | Default: {}. |
spec.cases[].caller.behavior.verbosity | "short" · "normal" · "rambling" | Optional | Default: "short". |
spec.cases[].caller.behavior.patience | integer | Optional | Default: 3. At least 1. At most 10. |
spec.cases[].caller.behavior.interrupts | "never" · "sometimes" · "often" | Optional | Default: "never". |
spec.cases[].caller.behavior.pauses | "never" · "sometimes" · "often" | Optional | Default: "never". |
spec.cases[].caller.behavior.backchannels | "never" · "sometimes" · "often" | Optional | Default: "never". |
| spec.cases[].caller · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].caller.kind | "script" | Required | — |
spec.cases[].caller.steps | array of object | Required | minItems: 1. maxItems: 30. |
spec.cases[].caller.steps[].says | string | Optional | minLength: 1. maxLength: 1000. |
spec.cases[].caller.steps[].keypad | object | Optional | — |
spec.cases[].caller.steps[].keypad.keys | string | Required | pattern: ^[0-9*#]{1,64}$. |
spec.cases[].caller.steps[].keypad.interval_ms | integer | Optional | Default: 120. At least 50. At most 1000. |
spec.cases[].caller.steps[].plays | object | Optional | — |
spec.cases[].caller.steps[].plays.kind | "screener_prompt" · "voicemail_greeting" | Required | — |
spec.cases[].caller.steps[].plays.text | string | Optional | minLength: 1. maxLength: 1000. |
spec.cases[].caller.steps[].plays.beep | boolean | Optional | Default: true. |
spec.cases[].caller.steps[].level_db | number | Optional | At least -60. At most 0. |
spec.cases[].caller.steps[].silence_ms | integer | Optional | At least 500. At most 600000. |
spec.cases[].caller.steps[].pause_before_ms | integer | Optional | At least 300. At most 5000. |
spec.cases[].caller.steps[].interrupt_at_ms | integer | Optional | At least 0. At most 15000. |
spec.cases[].caller.steps[].expect | object | Optional | — |
spec.cases[].caller.steps[].expect.lands | array of string | Required | maxItems: 20. |
spec.cases[].voice | object or null | Optional | Default: null. |
spec.cases[].voice.voice_id | string | Required in a non-null parent | minLength: 1. maxLength: 128. |
spec.cases[].voice.rate | number | Optional | Default: 1. At least 0.7. At most 1.3. |
spec.cases[].voice.channel | "pstn" · "wideband" | Optional | Default: "pstn". |
spec.cases[].voice.background | object | Optional | Default: {"kind":"none","snr_db":40}. |
spec.cases[].voice.background.kind | "none" · "room" · "car" · "street" · "babble" · "music" | Required in a non-null parent | — |
spec.cases[].voice.background.snr_db | number | Required in a non-null parent | At least 0. At most 40. |
spec.cases[].voice.echo | object or null | Optional | Default: null. |
spec.cases[].voice.echo.level_db | number | Required in a non-null parent | At least -40. At most -3. |
spec.cases[].voice.echo.delay_ms | integer | Required in a non-null parent | At least 20. At most 600. |
spec.cases[].dynamic_variables | object | Optional | Default: {}. |
spec.cases[].dynamic_variables.* | string | Optional | Additional keys are allowed. |
spec.cases[].mocks | array of object | Optional | Default: []. maxItems: 50. |
spec.cases[].mocks[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.cases[].mocks[].when | array of object | Optional | Default: []. maxItems: 10. |
spec.cases[].mocks[].when[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.cases[].mocks[].when[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].mocks[].when[].value | any JSON value | Optional | — |
spec.cases[].mocks[].respond | object | Required | — |
| spec.cases[].mocks[].respond · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "response" | Required | — |
spec.cases[].mocks[].respond.status | integer | Required | At least 100. At most 599. |
spec.cases[].mocks[].respond.body | any JSON value | Optional | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
| spec.cases[].mocks[].respond · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "error" | Required | — |
spec.cases[].mocks[].respond.error | "timeout" · "network" | Required | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
| spec.cases[].mocks[].respond · variant 3 | object | — | Fields for this schema branch. |
spec.cases[].mocks[].respond.kind | "transfer" | Required | — |
spec.cases[].mocks[].respond.outcome | "answered" · "busy" · "no_answer" · "failed" | Required | — |
spec.cases[].mocks[].respond.delay_ms | integer | Optional | At least 0. At most 60000. |
spec.cases[].mocks[].times | integer | Optional | Greater than 0. At most 100. |
spec.cases[].max_turns | integer | Optional | Default: 12. At least 1. At most 30. |
spec.cases[].timeout_ms | integer | Optional | At least 30000. At most 600000. |
spec.cases[].trials | integer | Optional | At least 1. At most 30. |
spec.cases[].pass_policy | "majority" · "all" | Optional | Default: "majority". |
spec.cases[].blocking | boolean | Optional | Default: true. |
spec.cases[].assertions | array of object | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "node_visited" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
spec.cases[].assertions[].match | "any" · "all" | Optional | Default: "any". |
spec.cases[].assertions[].by_turn | integer | Optional | At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "node_not_visited" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 3 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "path" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 50. |
spec.cases[].assertions[].order | "exact" · "subsequence" | Required | — |
| spec.cases[].assertions[] · variant 4 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "turn_lands" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].step | integer | Required | At least 1. At most 30. |
spec.cases[].assertions[].node_ids | array of string | Required | maxItems: 20. |
| spec.cases[].assertions[] · variant 5 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "final_node" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[] · variant 6 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "ended" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].reasons | array of "completed" · "transferred" · "caller_hangup" · "max_turns" · "timeout" · "failed" · "cancelled" · "inactivity" | Required | minItems: 1. maxItems: 8. |
| spec.cases[].assertions[] · variant 7 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "transfer" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].expected | boolean | Required | — |
spec.cases[].assertions[].node_id | string | Optional | minLength: 1. maxLength: 128. |
| spec.cases[].assertions[] · variant 8 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "disposition" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].in | array of string | Required | minItems: 1. maxItems: 32. |
| spec.cases[].assertions[] · variant 9 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "tool_called" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].args | array of object | Optional | Default: []. maxItems: 10. |
spec.cases[].assertions[].args[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.cases[].assertions[].args[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].assertions[].args[].value | any JSON value | Optional | — |
spec.cases[].assertions[].before_node | string | Optional | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].times | object | Optional | Default: {"min":1}. |
spec.cases[].assertions[].times.min | integer | Required | At least 0. At most 9007199254740991. |
spec.cases[].assertions[].times.max | integer | Optional | At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 10 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "tool_not_called" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].action_id | string | Required | minLength: 1. maxLength: 128. |
| spec.cases[].assertions[] · variant 11 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "variable" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].name | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
spec.cases[].assertions[].matcher | object | Required | — |
spec.cases[].assertions[].matcher.op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.cases[].assertions[].matcher.value | any JSON value | Optional | — |
| spec.cases[].assertions[] · variant 12 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "agent_says" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].expect | "never" · "at_least_once" | Required | — |
spec.cases[].assertions[].match | object | Required | — |
| spec.cases[].assertions[].match · variant 1 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].match.patterns | array of string | Required | minItems: 1. maxItems: 20. |
| spec.cases[].assertions[].match · variant 2 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].match.lexicon | "debt_disclosure" | Required | — |
spec.cases[].assertions[].scope | object | Optional | Default: {}. |
spec.cases[].assertions[].scope.until_node | string | Optional | minLength: 1. maxLength: 128. |
spec.cases[].assertions[].scope.from_turn | integer | Optional | At least 0. At most 9007199254740991. |
spec.cases[].assertions[].scope.until_step | integer | Optional | At least 1. At most 30. |
| spec.cases[].assertions[] · variant 13 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "agent_language" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].language | "en" · "es" | Required | — |
spec.cases[].assertions[].min_share | number | Required | At least 0. At most 1. |
spec.cases[].assertions[].after | "start" · "caller_switch" | Required | — |
| spec.cases[].assertions[] · variant 14 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "rubric" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].criteria | array of object | Required | minItems: 1. maxItems: 12. |
spec.cases[].assertions[].criteria[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z][a-z0-9_]*$. |
spec.cases[].assertions[].criteria[].question | string | Required | minLength: 1. maxLength: 500. |
spec.cases[].assertions[].criteria[].scale | "binary" · "1-5" | Optional | Default: "binary". |
spec.cases[].assertions[].criteria[].weight | integer | Optional | Default: 1. At least 1. At most 10. |
spec.cases[].assertions[].criteria[].required | boolean | Optional | Default: false. |
spec.cases[].assertions[].criteria[].allow_na | boolean | Optional | Default: false. |
spec.cases[].assertions[].threshold | number | Required | At least 0. At most 1. |
| spec.cases[].assertions[] · variant 15 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "response_latency" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].p50_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.cases[].assertions[].p95_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.cases[].assertions[].max_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 16 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "greeting_latency" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_ms | integer | Required | Greater than 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 17 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "no_cut_off" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max | integer | Optional | Default: 0. At least 0. At most 9007199254740991. |
| spec.cases[].assertions[] · variant 18 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "barge_in" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_stop_ms | integer | Optional | Default: 1000. At least 100. At most 5000. |
| spec.cases[].assertions[] · variant 19 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "no_false_yield" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
| spec.cases[].assertions[] · variant 20 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "answer_verdict" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].contact | array of "human" · "voicemail" · "ivr" · "unknown" | Required | minItems: 1. maxItems: 4. |
spec.cases[].assertions[].reasons | array of string | Optional | minItems: 1. maxItems: 10. |
| spec.cases[].assertions[] · variant 21 | object | — | Fields for this schema branch. |
spec.cases[].assertions[].type | "talk_over" | Required | — |
spec.cases[].assertions[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.cases[].assertions[].max_ms | integer | Required | At least 0. At most 30000. |
| spec · variant 2 | object | — | Fields for this schema branch. |
spec.kind | "replay" | Required | — |
spec.source | object | Required | — |
| spec.source · variant 1 | object | — | Fields for this schema branch. |
spec.source.kind | "selector" | Required | — |
spec.source.window_days | integer | Required | At least 1. At most 90. |
spec.source.versions | array of integer | Optional | maxItems: 20. |
spec.source.contact | array of "human" · "voicemail" · "ivr" · "unknown" | Optional | Default: ["human"]. minItems: 1. |
spec.source.dispositions | array of string | Optional | maxItems: 32. |
spec.source.min_caller_turns | integer | Optional | Default: 1. At least 1. At most 9007199254740991. |
spec.source.sample | "latest" · "stratified_by_disposition" | Optional | Default: "latest". |
spec.source.limit | integer | Required | Maximum items to return in this page. At least 1. At most 200. |
| spec.source · variant 2 | object | — | Fields for this schema branch. |
spec.source.kind | "runs" | Required | — |
spec.source.run_ids | array of string (uuid) | Required | minItems: 1. maxItems: 200. |
spec.trials | integer | Optional | Default: 1. At least 1. At most 3. |
spec.population | array of object | Required | minItems: 1. maxItems: 5. |
| spec.population[] · variant 1 | object | — | Fields for this schema branch. |
spec.population[].type | "regression" | Required | — |
spec.population[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.population[].metric | "outcome_agreement" · "edge_agreement" | Required | — |
spec.population[].tolerance_per_30 | integer | Optional | Default: 1. At least 0. At most 30. |
| spec.population[] · variant 2 | object | — | Fields for this schema branch. |
spec.population[].type | "judged_divergence" | Required | — |
spec.population[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.population[].max_judged_worse | integer | Required | At least 0. At most 9007199254740991. |
spec.every_case | array of object | Optional | Default: []. maxItems: 10. |
| spec.every_case[] · variant 1 | object | — | Fields for this schema branch. |
spec.every_case[].type | "node_visited" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
spec.every_case[].match | "any" · "all" | Optional | Default: "any". |
spec.every_case[].by_turn | integer | Optional | At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 2 | object | — | Fields for this schema branch. |
spec.every_case[].type | "node_not_visited" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[] · variant 3 | object | — | Fields for this schema branch. |
spec.every_case[].type | "path" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 50. |
spec.every_case[].order | "exact" · "subsequence" | Required | — |
| spec.every_case[] · variant 4 | object | — | Fields for this schema branch. |
spec.every_case[].type | "turn_lands" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].step | integer | Required | At least 1. At most 30. |
spec.every_case[].node_ids | array of string | Required | maxItems: 20. |
| spec.every_case[] · variant 5 | object | — | Fields for this schema branch. |
spec.every_case[].type | "final_node" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].node_ids | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[] · variant 6 | object | — | Fields for this schema branch. |
spec.every_case[].type | "ended" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].reasons | array of "completed" · "transferred" · "caller_hangup" · "max_turns" · "timeout" · "failed" · "cancelled" · "inactivity" | Required | minItems: 1. maxItems: 8. |
| spec.every_case[] · variant 7 | object | — | Fields for this schema branch. |
spec.every_case[].type | "transfer" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].expected | boolean | Required | — |
spec.every_case[].node_id | string | Optional | minLength: 1. maxLength: 128. |
| spec.every_case[] · variant 8 | object | — | Fields for this schema branch. |
spec.every_case[].type | "disposition" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].in | array of string | Required | minItems: 1. maxItems: 32. |
| spec.every_case[] · variant 9 | object | — | Fields for this schema branch. |
spec.every_case[].type | "tool_called" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].action_id | string | Required | minLength: 1. maxLength: 128. |
spec.every_case[].args | array of object | Optional | Default: []. maxItems: 10. |
spec.every_case[].args[].path | string | Required | maxLength: 256. pattern: ^(/[^/])$. |
spec.every_case[].args[].op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.every_case[].args[].value | any JSON value | Optional | — |
spec.every_case[].before_node | string | Optional | minLength: 1. maxLength: 128. |
spec.every_case[].times | object | Optional | Default: {"min":1}. |
spec.every_case[].times.min | integer | Required | At least 0. At most 9007199254740991. |
spec.every_case[].times.max | integer | Optional | At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 10 | object | — | Fields for this schema branch. |
spec.every_case[].type | "tool_not_called" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].action_id | string | Required | minLength: 1. maxLength: 128. |
| spec.every_case[] · variant 11 | object | — | Fields for this schema branch. |
spec.every_case[].type | "variable" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].name | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
spec.every_case[].matcher | object | Required | — |
spec.every_case[].matcher.op | "equals" · "one_of" · "contains" · "regex" · "exists" · "absent" · "number_range" | Required | — |
spec.every_case[].matcher.value | any JSON value | Optional | — |
| spec.every_case[] · variant 12 | object | — | Fields for this schema branch. |
spec.every_case[].type | "agent_says" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].expect | "never" · "at_least_once" | Required | — |
spec.every_case[].match | object | Required | — |
| spec.every_case[].match · variant 1 | object | — | Fields for this schema branch. |
spec.every_case[].match.patterns | array of string | Required | minItems: 1. maxItems: 20. |
| spec.every_case[].match · variant 2 | object | — | Fields for this schema branch. |
spec.every_case[].match.lexicon | "debt_disclosure" | Required | — |
spec.every_case[].scope | object | Optional | Default: {}. |
spec.every_case[].scope.until_node | string | Optional | minLength: 1. maxLength: 128. |
spec.every_case[].scope.from_turn | integer | Optional | At least 0. At most 9007199254740991. |
spec.every_case[].scope.until_step | integer | Optional | At least 1. At most 30. |
| spec.every_case[] · variant 13 | object | — | Fields for this schema branch. |
spec.every_case[].type | "agent_language" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].language | "en" · "es" | Required | — |
spec.every_case[].min_share | number | Required | At least 0. At most 1. |
spec.every_case[].after | "start" · "caller_switch" | Required | — |
| spec.every_case[] · variant 14 | object | — | Fields for this schema branch. |
spec.every_case[].type | "rubric" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].criteria | array of object | Required | minItems: 1. maxItems: 12. |
spec.every_case[].criteria[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[a-z][a-z0-9_]*$. |
spec.every_case[].criteria[].question | string | Required | minLength: 1. maxLength: 500. |
spec.every_case[].criteria[].scale | "binary" · "1-5" | Optional | Default: "binary". |
spec.every_case[].criteria[].weight | integer | Optional | Default: 1. At least 1. At most 10. |
spec.every_case[].criteria[].required | boolean | Optional | Default: false. |
spec.every_case[].criteria[].allow_na | boolean | Optional | Default: false. |
spec.every_case[].threshold | number | Required | At least 0. At most 1. |
| spec.every_case[] · variant 15 | object | — | Fields for this schema branch. |
spec.every_case[].type | "response_latency" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].p50_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.every_case[].p95_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
spec.every_case[].max_ms | integer | Optional | Greater than 0. At most 9007199254740991. |
| spec.every_case[] · variant 16 | object | — | Fields for this schema branch. |
spec.every_case[].type | "greeting_latency" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_ms | integer | Required | Greater than 0. At most 9007199254740991. |
| spec.every_case[] · variant 17 | object | — | Fields for this schema branch. |
spec.every_case[].type | "no_cut_off" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max | integer | Optional | Default: 0. At least 0. At most 9007199254740991. |
| spec.every_case[] · variant 18 | object | — | Fields for this schema branch. |
spec.every_case[].type | "barge_in" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_stop_ms | integer | Optional | Default: 1000. At least 100. At most 5000. |
| spec.every_case[] · variant 19 | object | — | Fields for this schema branch. |
spec.every_case[].type | "no_false_yield" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
| spec.every_case[] · variant 20 | object | — | Fields for this schema branch. |
spec.every_case[].type | "answer_verdict" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].contact | array of "human" · "voicemail" · "ivr" · "unknown" | Required | minItems: 1. maxItems: 4. |
spec.every_case[].reasons | array of string | Optional | minItems: 1. maxItems: 10. |
| spec.every_case[] · variant 21 | object | — | Fields for this schema branch. |
spec.every_case[].type | "talk_over" | Required | — |
spec.every_case[].id | string | Required | minLength: 1. maxLength: 64. pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$. |
spec.every_case[].max_ms | integer | Required | At least 0. At most 30000. |
created_by | object | Required | — |
| created_by · variant 1 | object | — | Fields for this schema branch. |
created_by.owner_id | string | Required | minLength: 1. |
created_by.environment | string | Required | minLength: 1. |
created_by.kind | "user" | Required | — |
created_by.id | string (uuid) | Required | pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
| created_by · variant 2 | object | — | Fields for this schema branch. |
created_by.owner_id | string | Required | minLength: 1. |
created_by.environment | string | Required | minLength: 1. |
created_by.kind | "api_key" | Required | — |
created_by.id | string (uuid) | Required | pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
| created_by · variant 3 | object | — | Fields for this schema branch. |
created_by.owner_id | string | Required | minLength: 1. |
created_by.environment | string | Required | minLength: 1. |
created_by.kind | "system" | Required | — |
created_by.id | string | Required | minLength: 1. maxLength: 256. |
created_at | string (date-time) | Required | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
updated_at | string (date-time) | Required | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
archived_at | string (date-time) or null | Required | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
last_run | object or null | Required | — |
last_run.test_run_id | string (uuid) | Required in a non-null parent | Identifier of the test run whose progress or results you are reading. pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
last_run.version | integer | Required in a non-null parent | At least 0. At most 2147483647. |
last_run.state | "queued" · "running" · "completed" · "cancelled" | Required in a non-null parent | — |
last_run.verdict | "passed" · "failed" · "errored" or null | Required in a non-null parent | — |
last_run.created_at | string (date-time) | Required in a non-null parent | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
last_run.finished_at | string (date-time) or null | Required in a non-null parent | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
flaky_case_ids | array of string | Required | maxItems: 100. |
Error responses
| HTTP | Description |
|---|---|
| 4XX | Typed error (ApiError) |
| 5XX | Typed error (ApiError) |
Errors use the shared error envelope. Inspect error.code, retryable, outcome and details before retrying.
Complete OpenAPI schema
{
"200": {
"description": "Create a test suite on an agent (201; an idempotent replay returns 200)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestSuiteView"
}
}
}
},
"201": {
"description": "Create a test suite on an agent (201; an idempotent replay returns 200)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestSuiteView"
}
}
}
},
"4XX": {
"description": "Typed error (ApiError)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"5XX": {
"description": "Typed error (ApiError)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}
Referenced schemas
Expand the complete OpenAPI definitions for integrations that generate their own clients.
Complete OpenAPI schema
{
"components": {
"schemas": {
"TestSuitesCreateRequest": {
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"spec": {
"$ref": "#/components/schemas/TestSuiteSpec"
}
},
"required": [
"agent_id",
"name",
"spec"
],
"additionalProperties": false
},
"TestSuiteSpec": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"simulation"
]
},
"cases": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"$ref": "#/components/schemas/TestCase"
}
}
},
"required": [
"kind",
"cases"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"replay"
]
},
"source": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"selector"
]
},
"window_days": {
"type": "integer",
"minimum": 1,
"maximum": 90
},
"versions": {
"maxItems": 20,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
}
},
"contact": {
"default": [
"human"
],
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"human",
"voicemail",
"ivr",
"unknown"
]
}
},
"dispositions": {
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,127}$"
}
},
"min_caller_turns": {
"default": 1,
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"sample": {
"default": "latest",
"type": "string",
"enum": [
"latest",
"stratified_by_disposition"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
}
},
"required": [
"kind",
"window_days",
"limit"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"runs"
]
},
"run_ids": {
"minItems": 1,
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
}
}
},
"required": [
"kind",
"run_ids"
],
"additionalProperties": false
}
]
},
"trials": {
"default": 1,
"type": "integer",
"minimum": 1,
"maximum": 3
},
"population": {
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"regression"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"metric": {
"type": "string",
"enum": [
"outcome_agreement",
"edge_agreement"
]
},
"tolerance_per_30": {
"default": 1,
"type": "integer",
"minimum": 0,
"maximum": 30
}
},
"required": [
"type",
"id",
"metric"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"judged_divergence"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"max_judged_worse": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"type",
"id",
"max_judged_worse"
],
"additionalProperties": false
}
]
}
},
"every_case": {
"default": [],
"maxItems": 10,
"type": "array",
"items": {
"$ref": "#/components/schemas/Assertion"
}
}
},
"required": [
"kind",
"source",
"population"
],
"additionalProperties": false
}
]
},
"TestCase": {
"type": "object",
"properties": {
"case_id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9][a-z0-9_-]*$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"tags": {
"default": [],
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"mode": {
"default": "text",
"type": "string",
"enum": [
"text",
"audio"
]
},
"language": {
"type": "string",
"enum": [
"en",
"es"
]
},
"caller": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"persona"
]
},
"goal": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"brief": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"facts": {
"default": {},
"type": "object",
"additionalProperties": {
"type": "string",
"maxLength": 512
}
},
"behavior": {
"default": {},
"type": "object",
"properties": {
"verbosity": {
"default": "short",
"type": "string",
"enum": [
"short",
"normal",
"rambling"
]
},
"patience": {
"default": 3,
"type": "integer",
"minimum": 1,
"maximum": 10
},
"interrupts": {
"default": "never",
"type": "string",
"enum": [
"never",
"sometimes",
"often"
]
},
"pauses": {
"default": "never",
"type": "string",
"enum": [
"never",
"sometimes",
"often"
]
},
"backchannels": {
"default": "never",
"type": "string",
"enum": [
"never",
"sometimes",
"often"
]
}
},
"additionalProperties": false
}
},
"required": [
"kind",
"goal",
"brief"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"script"
]
},
"steps": {
"minItems": 1,
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"says": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"keypad": {
"type": "object",
"properties": {
"keys": {
"type": "string",
"pattern": "^[0-9*#]{1,64}$"
},
"interval_ms": {
"default": 120,
"type": "integer",
"minimum": 50,
"maximum": 1000
}
},
"required": [
"keys"
],
"additionalProperties": false
},
"plays": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"screener_prompt",
"voicemail_greeting"
]
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"beep": {
"default": true,
"type": "boolean"
}
},
"required": [
"kind"
],
"additionalProperties": false
},
"level_db": {
"type": "number",
"minimum": -60,
"maximum": 0
},
"silence_ms": {
"type": "integer",
"minimum": 500,
"maximum": 600000
},
"pause_before_ms": {
"type": "integer",
"minimum": 300,
"maximum": 5000
},
"interrupt_at_ms": {
"type": "integer",
"minimum": 0,
"maximum": 15000
},
"expect": {
"type": "object",
"properties": {
"lands": {
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
},
"required": [
"lands"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
}
},
"required": [
"kind",
"steps"
],
"additionalProperties": false
}
]
},
"voice": {
"default": null,
"nullable": true,
"type": "object",
"properties": {
"voice_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"rate": {
"default": 1,
"type": "number",
"minimum": 0.7,
"maximum": 1.3
},
"channel": {
"default": "pstn",
"type": "string",
"enum": [
"pstn",
"wideband"
]
},
"background": {
"default": {
"kind": "none",
"snr_db": 40
},
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"none",
"room",
"car",
"street",
"babble",
"music"
]
},
"snr_db": {
"type": "number",
"minimum": 0,
"maximum": 40
}
},
"required": [
"kind",
"snr_db"
],
"additionalProperties": false
},
"echo": {
"default": null,
"nullable": true,
"type": "object",
"properties": {
"level_db": {
"type": "number",
"minimum": -40,
"maximum": -3
},
"delay_ms": {
"type": "integer",
"minimum": 20,
"maximum": 600
}
},
"required": [
"level_db",
"delay_ms"
],
"additionalProperties": false
}
},
"required": [
"voice_id"
],
"additionalProperties": false
},
"dynamic_variables": {
"default": {},
"type": "object",
"additionalProperties": {
"type": "string",
"maxLength": 4096
}
},
"mocks": {
"default": [],
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"action_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"when": {
"default": [],
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 256,
"pattern": "^(\\/[^/]*)*$"
},
"op": {
"type": "string",
"enum": [
"equals",
"one_of",
"contains",
"regex",
"exists",
"absent",
"number_range"
]
},
"value": {}
},
"required": [
"path",
"op"
],
"additionalProperties": false
}
},
"respond": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"response"
]
},
"status": {
"type": "integer",
"minimum": 100,
"maximum": 599
},
"body": {},
"delay_ms": {
"type": "integer",
"minimum": 0,
"maximum": 60000
}
},
"required": [
"kind",
"status"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"error"
]
},
"error": {
"type": "string",
"enum": [
"timeout",
"network"
]
},
"delay_ms": {
"type": "integer",
"minimum": 0,
"maximum": 60000
}
},
"required": [
"kind",
"error"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"transfer"
]
},
"outcome": {
"type": "string",
"enum": [
"answered",
"busy",
"no_answer",
"failed"
]
},
"delay_ms": {
"type": "integer",
"minimum": 0,
"maximum": 60000
}
},
"required": [
"kind",
"outcome"
],
"additionalProperties": false
}
]
},
"times": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 100
}
},
"required": [
"action_id",
"respond"
],
"additionalProperties": false
}
},
"max_turns": {
"default": 12,
"type": "integer",
"minimum": 1,
"maximum": 30
},
"timeout_ms": {
"type": "integer",
"minimum": 30000,
"maximum": 600000
},
"trials": {
"type": "integer",
"minimum": 1,
"maximum": 30
},
"pass_policy": {
"default": "majority",
"type": "string",
"enum": [
"majority",
"all"
]
},
"blocking": {
"default": true,
"type": "boolean"
},
"assertions": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"$ref": "#/components/schemas/Assertion"
}
}
},
"required": [
"case_id",
"name",
"language",
"caller",
"assertions"
],
"additionalProperties": false
},
"Assertion": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"node_visited"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"node_ids": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"match": {
"default": "any",
"type": "string",
"enum": [
"any",
"all"
]
},
"by_turn": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"type",
"id",
"node_ids"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"node_not_visited"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"node_ids": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
},
"required": [
"type",
"id",
"node_ids"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"path"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"node_ids": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"order": {
"type": "string",
"enum": [
"exact",
"subsequence"
]
}
},
"required": [
"type",
"id",
"node_ids",
"order"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"turn_lands"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"step": {
"type": "integer",
"minimum": 1,
"maximum": 30
},
"node_ids": {
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
},
"required": [
"type",
"id",
"step",
"node_ids"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"final_node"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"node_ids": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
},
"required": [
"type",
"id",
"node_ids"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"ended"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"reasons": {
"minItems": 1,
"maxItems": 8,
"type": "array",
"items": {
"type": "string",
"enum": [
"completed",
"transferred",
"caller_hangup",
"max_turns",
"timeout",
"failed",
"cancelled",
"inactivity"
]
}
}
},
"required": [
"type",
"id",
"reasons"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"transfer"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"expected": {
"type": "boolean"
},
"node_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"type",
"id",
"expected"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"disposition"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"in": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,127}$"
}
}
},
"required": [
"type",
"id",
"in"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"tool_called"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"action_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"args": {
"default": [],
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 256,
"pattern": "^(\\/[^/]*)*$"
},
"op": {
"type": "string",
"enum": [
"equals",
"one_of",
"contains",
"regex",
"exists",
"absent",
"number_range"
]
},
"value": {}
},
"required": [
"path",
"op"
],
"additionalProperties": false
}
},
"before_node": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"times": {
"default": {
"min": 1
},
"type": "object",
"properties": {
"min": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"max": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"min"
],
"additionalProperties": false
}
},
"required": [
"type",
"id",
"action_id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"tool_not_called"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"action_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"type",
"id",
"action_id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"variable"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"name": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
},
"matcher": {
"type": "object",
"properties": {
"op": {
"type": "string",
"enum": [
"equals",
"one_of",
"contains",
"regex",
"exists",
"absent",
"number_range"
]
},
"value": {}
},
"required": [
"op"
],
"additionalProperties": false
}
},
"required": [
"type",
"id",
"name",
"matcher"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"agent_says"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"expect": {
"type": "string",
"enum": [
"never",
"at_least_once"
]
},
"match": {
"anyOf": [
{
"type": "object",
"properties": {
"patterns": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
}
},
"required": [
"patterns"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"lexicon": {
"type": "string",
"enum": [
"debt_disclosure"
]
}
},
"required": [
"lexicon"
],
"additionalProperties": false
}
]
},
"scope": {
"default": {},
"type": "object",
"properties": {
"until_node": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"from_turn": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"until_step": {
"type": "integer",
"minimum": 1,
"maximum": 30
}
},
"additionalProperties": false
}
},
"required": [
"type",
"id",
"expect",
"match"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"agent_language"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"language": {
"type": "string",
"enum": [
"en",
"es"
]
},
"min_share": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"after": {
"type": "string",
"enum": [
"start",
"caller_switch"
]
}
},
"required": [
"type",
"id",
"language",
"min_share",
"after"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"rubric"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"criteria": {
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z][a-z0-9_]*$"
},
"question": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"scale": {
"default": "binary",
"type": "string",
"enum": [
"binary",
"1-5"
]
},
"weight": {
"default": 1,
"type": "integer",
"minimum": 1,
"maximum": 10
},
"required": {
"default": false,
"type": "boolean"
},
"allow_na": {
"default": false,
"type": "boolean"
}
},
"required": [
"id",
"question"
],
"additionalProperties": false
}
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"type",
"id",
"criteria",
"threshold"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"response_latency"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"p50_ms": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 9007199254740991
},
"p95_ms": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 9007199254740991
},
"max_ms": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 9007199254740991
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"greeting_latency"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"max_ms": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 9007199254740991
}
},
"required": [
"type",
"id",
"max_ms"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"no_cut_off"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"max": {
"default": 0,
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"barge_in"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"max_stop_ms": {
"default": 1000,
"type": "integer",
"minimum": 100,
"maximum": 5000
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"no_false_yield"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"answer_verdict"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"contact": {
"minItems": 1,
"maxItems": 4,
"type": "array",
"items": {
"type": "string",
"enum": [
"human",
"voicemail",
"ivr",
"unknown"
]
}
},
"reasons": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{0,127}$"
}
}
},
"required": [
"type",
"id",
"contact"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"talk_over"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
},
"max_ms": {
"type": "integer",
"minimum": 0,
"maximum": 30000
}
},
"required": [
"type",
"id",
"max_ms"
],
"additionalProperties": false
}
]
},
"TestSuiteView": {
"type": "object",
"properties": {
"owner_id": {
"type": "string",
"minLength": 1
},
"environment": {
"type": "string",
"minLength": 1
},
"tenant_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
},
"suite_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
},
"agent_id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"required": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 2147483647
},
"digest": {
"type": "string",
"pattern": "^sha256:[a-f0-9]{64}$"
},
"spec": {
"$ref": "#/components/schemas/TestSuiteSpec"
},
"created_by": {
"$ref": "#/components/schemas/PrincipalRef"
},
"created_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"updated_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"archived_at": {
"nullable": true,
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"last_run": {
"nullable": true,
"type": "object",
"properties": {
"test_run_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"state": {
"type": "string",
"enum": [
"queued",
"running",
"completed",
"cancelled"
]
},
"verdict": {
"nullable": true,
"type": "string",
"enum": [
"passed",
"failed",
"errored"
]
},
"created_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"finished_at": {
"nullable": true,
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
}
},
"required": [
"test_run_id",
"version",
"state",
"verdict",
"created_at",
"finished_at"
],
"additionalProperties": false
},
"flaky_case_ids": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9][a-z0-9_-]*$"
}
}
},
"required": [
"owner_id",
"environment",
"tenant_id",
"suite_id",
"agent_id",
"name",
"required",
"revision",
"digest",
"spec",
"created_by",
"created_at",
"updated_at",
"archived_at",
"last_run",
"flaky_case_ids"
],
"additionalProperties": false
},
"PrincipalRef": {
"oneOf": [
{
"type": "object",
"properties": {
"owner_id": {
"type": "string",
"minLength": 1
},
"environment": {
"type": "string",
"minLength": 1
},
"kind": {
"type": "string",
"enum": [
"user"
]
},
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
}
},
"required": [
"owner_id",
"environment",
"kind",
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"owner_id": {
"type": "string",
"minLength": 1
},
"environment": {
"type": "string",
"minLength": 1
},
"kind": {
"type": "string",
"enum": [
"api_key"
]
},
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
}
},
"required": [
"owner_id",
"environment",
"kind",
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"owner_id": {
"type": "string",
"minLength": 1
},
"environment": {
"type": "string",
"minLength": 1
},
"kind": {
"type": "string",
"enum": [
"system"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"owner_id",
"environment",
"kind",
"id"
],
"additionalProperties": false
}
]
},
"ApiError": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"unauthenticated",
"forbidden",
"not_found",
"conflict",
"invalid_request",
"idempotency_conflict",
"policy_denied",
"capability_unavailable",
"provider_unavailable",
"knowledge_unavailable",
"publication_invalid",
"run_not_active",
"rate_limited",
"outcome_unknown",
"internal"
]
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"outcome": {
"type": "string",
"enum": [
"none",
"unknown"
]
},
"details": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"code",
"message",
"retryable",
"outcome"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}
}
}
}
Errors and recovery
See API error handling and Troubleshooting.