Create an eval suite
Creates a versioned suite. New suites add scenarios and attach checks through their own endpoints.
slug is immutable and workspace-unique.
The definition field is legacy
It is optional, defaults to {}, and carries only legacy v1 suite fields: rubric, assertions and personas. Legacy definition.personas entries are mirrored into first-class scenarios.
Limits — the encoded definition is capped at 1,048,576 bytes, and the complete encoded request body at 1,114,112 bytes.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
slug*string^[a-z0-9][a-z0-9_-]{1,63}$2 <= length <= 64name*stringLimited to 200 UTF-8 encoded bytes; maxLength is a generator hint.
1 <= length <= 200description?|Limited to 2000 UTF-8 encoded bytes; maxLength is a generator hint.
length <= 2000definition?Optional; defaults to {}. Holds only the legacy (v1) suite fields; a v2 suite keeps its scenarios (/eval-suites/{id}/scenarios) and checks (/eval-suites/{id}/checks) as their own resources and needs nothing here. Recognised keys, all optional: rubric (array of at most 500 {name, description, ...} objects) — legacy LLM rubric criteria scored per conversation; assertions (object) — legacy structured assertions applied to every scenario (expected_path, expected_terminal_node, expected_tools_called, must_not_call_tools), overridden per scenario by the same key; personas (array of at most 5000 {id, label, persona, scenario, assertions} objects) — mirrored into first-class scenarios on write. Other keys are stored and ignored. The encoded value must be at most 1048576 bytes.
Suite created with a strong ETag.
application/json- response
id*stringuuidslug*string^[a-z0-9][a-z0-9_-]{1,63}$2 <= length <= 64name*string1 <= length <= 200description*|length <= 2000version*integerint641 <= valuearchived_at*|date-timecreated_at*stringdate-timeupdated_at*stringdate-timedefinition*Open JSON object; the encoded value must be at most 1048576 bytes.
curl -X POST 'https://api.kejue.co/v1/eval-suites' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "slug": "string", "name": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "name": "string", "description": "string", "version": 1, "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "definition": {}}