Start a new test run against an AI agent
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | Yes | UUID of the agent to test |
test_suite_id | string | No | UUID of the test suite. If not provided, uses the default suite |
name | string | No | Custom name for this run |
test_mode | string | No | demo (20 scenarios) or full (all scenarios). Default: demo |
max_scenarios | number | No | Limit number of scenarios to run |
max_turns | number | No | Max conversation turns per scenario. Default: 4 |
| Field | Type | Description |
|---|---|---|
id | string | UUID of the created run |
test_run_id | string | Human-readable run ID (e.g., TR-00042) |
status | string | Initial run status (pending or running) |
total_scenarios | number | Number of scenarios to run |
poll_url | string | URL to poll for status updates |
| Code | Description |
|---|---|
MISSING_REQUIRED_FIELD | agent_id is required |
AGENT_NOT_FOUND | Agent not found or doesn’t belong to your organization |
INVALID_FIELD_VALUE | Invalid value for test_mode or other field |
RATE_LIMITED | Too many concurrent runs |
| Mode | Scenarios | Use Case |
|---|---|---|
demo | 20 | Quick validation during development |
full | All | Comprehensive testing before deployment |