Create a Test Suite
POST /v1/{project_id}/testing/suites
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Suite name |
description | string | No | Description of what this suite tests |
tags | list[string] | No | Tags for organizing suites |
Response
List Test Suites
GET /v1/{project_id}/testing/suites
Response
Add a Test Case
POST /v1/{project_id}/testing/suites/{suite_id}/cases
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Input prompt for the test case |
expected_answer | string | Yes | Ground-truth expected output |
category | string | No | Category label for grouping cases |
assertions | list[object] | No | Assertions to evaluate (see below) |
Assertion Types
| Type | Value | Description |
|---|---|---|
contains | string | Output must contain the value |
not_contains | string | Output must not contain the value |
equals | string | Output must exactly match the value |
max_latency_ms | number | Response must complete within this time |
min_score | number | LLM judge score must meet this threshold |
Response
Run a Test Suite
POST /v1/{project_id}/testing/suites/{suite_id}/run
Response
Get Run Results
GET /v1/{project_id}/testing/runs/{run_id}/results