Eval suites
Get an eval scenario generation job
Permission
eval-suites:readAuthenticationGET
Poll this resource after generate_eval_scenarios. queued and running responses carry Retry-After: 2. Failed jobs expose only eval_generation_failed and a sanitized message.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidCurrent generation job state.
application/json- response
id*stringFormat
uuidsuite_id*stringFormat
uuidagent_id*stringFormat
uuidstatus*stringValue in
"queued""running""done""failed""cancelled"requested_count*integerRange
1 <= value <= 5000completed_count*integerRange
0 <= value <= 5000context_text*|Length
length <= 20000error*|Sanitized public message; provider or prompt details are never returned.
Value in
"generation failed"nullerror_code?|nullcreated_at*stringFormat
date-timestarted_at*|Format
date-timeended_at*|Format
date-timecurl -X GET 'https://api.kejue.co/v1/eval-generation-jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "suite_id": "3e9c08eb-436b-4d4b-9cfe-ca21d8bdb99b", "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "status": "queued", "requested_count": 1, "completed_count": 0, "context_text": "string", "error": "generation failed", "error_code": "eval_generation_failed", "created_at": "2019-08-24T14:15:22Z", "started_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z"}