Skip to Content
Eval runs

Create a live-tool eval run

Permissioneval-runs:createAdd-onEvaluationsRetriesIdempotency-Key requiredAuthentication
POST
/eval-runs/live

Queues an eval whose agent may invoke real external tools. This endpoint always stores tool_policy=live and requires both eval-runs:create and eval-runs:execute-live-tools. The maximum encoded request body is 262144 bytes. Poll Location after Retry-After.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Header Parameters

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
agent_id*string
Formatuuid
agent_version_id?string
Formatuuid
suite_id*string
Formatuuid
mode*"text"

Mode to run. Only text is supported.

Value in"text"
concurrency?integer
Range0 <= value <= 1000
Default0
tool_policy?"live"
Default"live"
Value in"live"
runtime_profile?

Evaluation behavior and optional platform catalog references. Internal model, provider and upstream voice names are not accepted; select the corresponding catalog UUID.

Response Body

Live-tool run accepted and queued.

application/json
  1. response
id*string
Formatuuid
effective_concurrency*integer

Requested value after mode defaults and current workspace headroom clamping; the deployment cap is configurable.

Range1 <= value <= 1000
total*integer
Range1 <= value
Example Request
curl -X POST 'https://api.kejue.co/v1/eval-runs/live' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",  "suite_id": "3e9c08eb-436b-4d4b-9cfe-ca21d8bdb99b",  "mode": "text"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "effective_concurrency": 1,  "total": 1}