Start a run
SDK platic.agents.evals.runs.start()
Test a suite against one to four agent versions. Send suiteId and versions; you will receive 202 with the launchId to check progress. One run is created per version.
Example
curl -X POST "https://api.platic.ai/v1/agents/$AGENT_ID/evals/runs" \
-H "Authorization: Bearer $PLATIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"suiteId": "s8Kd2LmQ",
"versions": ["draft", "published"]
}' await platic.agents.evals.runs.start("agent_123", { suiteId: "suite_123", versions: ["draft"] }); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
agentId | string | Agent ID | ✓ |
Request body
{
"suiteId": "s8Kd2LmQ",
"versions": ["draft", "published"]
} The same fields as the estimate.
| Field | Type | Description | Required |
|---|---|---|---|
suiteId | string | The suite. | ✓ |
versions | array | 1 to 4 versions: draft, published or vN (the exact version number, for example v5). | ✓ |
Response
202 with the launch:
{
"status": "success",
"data": {
"launchId": "lch_2c9f41",
"suiteId": "s8Kd2LmQ",
"suiteRevision": 3,
"suiteHash": "sha256:9b0e…",
"trigger": "manual",
"status": "queued",
"createdAt": "2026-11-01T15:20:04.000Z",
"progress": { "totalTrials": 12, "finishedTrials": 0 },
"estimatedMaxMessages": 24,
"runs": [
{
"runId": "run_a1f3",
"launchId": "lch_2c9f41",
"suiteId": "s8Kd2LmQ",
"versionId": "v7",
"number": 7,
"requested": ["draft"],
"trigger": "manual",
"status": "queued",
"outcome": null,
"passed": null,
"pass1": null,
"erroredTrials": 0,
"progress": { "totalTrials": 6, "finishedTrials": 0 },
"createdAt": "2026-11-01T15:20:04.000Z"
},
{
"runId": "run_b2c4",
"launchId": "lch_2c9f41",
"suiteId": "s8Kd2LmQ",
"versionId": "v5",
"number": 5,
"requested": ["published"],
"trigger": "manual",
"status": "queued",
"outcome": null,
"passed": null,
"pass1": null,
"erroredTrials": 0,
"progress": { "totalTrials": 6, "finishedTrials": 0 },
"createdAt": "2026-11-01T15:20:04.000Z"
}
]
}
} Response fields
| Field | Description |
|---|---|
launchId | The launch. Use it to read it with Get a launch. |
suiteId | The suite. It can be null. |
suiteRevision | Which edition of the suite was frozen: the number goes up every time the suite is replaced. It can be null. |
suiteHash | Fingerprint of the frozen suite. Two runs with the same suiteHash ran exactly the same thing. |
trigger | manual, or on_publish if it ran on its own on publish. |
status | queued at the start. Later, running, completed or cancelled. See Results. |
createdAt | Creation date, ISO 8601. |
progress | totalTrials and finishedTrials, adding up all versions. |
estimatedMaxMessages | The most it can cost, as in the estimate. It can be null. |
runs | One run per version, with the fields of List runs. |
Errors
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | The body is not valid; for example, more than four versions. |
404 | AGENT_NOT_FOUND | The agent does not exist or belongs to another workspace. |
404 | EVAL_NOT_FOUND | The suite does not exist in your workspace. |
404 | EVAL_VERSION_NOT_FOUND | One of the versions does not exist. |
409 | EVAL_SUITE_STALE | The suite is archived or one of its scenarios no longer exists. |
429 | EVAL_CAPACITY | The launch goes over the trial limit (64 by default; the estimate warns with too_many_trials) or too many evals are running. Choose fewer versions, scenarios or trials, or retry later. |
503 | EVAL_ENGINE_UNAVAILABLE | The evals service did not answer. Check List runs before retrying. |
Notes
runscan come back empty: the launch is already running (and costing), but its runs could not be read yet. Read them with Get a launch. Do not launch it again with another key.- Each version is resolved to its exact
vNat that moment. If you save or publish later, the run keeps evaluating the same version. If two values inversionsare the same version, it runs only once. - It never blocks or changes publishing.
- It requires permission to edit the agent, the same as to publish.
- Next: read the launch until it finishes. To stop it, cancel it.