Eval suites
Generate eval scenarios
POST
Creates an asynchronous generation job for 1 to 5000 scenarios and publishes it to the queue. The complete encoded request body is limited to 65536 bytes. Poll Location after Retry-After. context_text is optional and limited to 20000 encoded bytes.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIdempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
Match
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$Length
1 <= length <= 255application/json- body
agent_id*stringFormat
uuidcount*integerRange
1 <= value <= 5000context_text?stringLimited to 20000 UTF-8 encoded bytes; maxLength is a generator hint.
Length
length <= 20000Default
""Generation job accepted.
application/json- response
job_id*stringFormat
uuidrequested_count*integerRange
1 <= value <= 5000curl -X POST 'https://api.kejue.co/v1/eval-suites/497f6eca-6276-4993-bfeb-53cbbbba6f08/generate' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "count": 1}'Example Response
{ "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f", "requested_count": 1}