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

await platic.agents.evals.runs.start("agent_123", { suiteId: "suite_123", versions: ["draft"] });

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent ID✓

Request body

{
  "suiteId": "s8Kd2LmQ",
  "versions": ["draft", "published"]
}

The same fields as the estimate.

FieldTypeDescriptionRequired
suiteIdstringThe suite.✓
versionsarray1 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

FieldDescription
launchIdThe launch. Use it to read it with Get a launch.
suiteIdThe suite. It can be null.
suiteRevisionWhich edition of the suite was frozen: the number goes up every time the suite is replaced. It can be null.
suiteHashFingerprint of the frozen suite. Two runs with the same suiteHash ran exactly the same thing.
triggermanual, or on_publish if it ran on its own on publish.
statusqueued at the start. Later, running, completed or cancelled. See Results.
createdAtCreation date, ISO 8601.
progresstotalTrials and finishedTrials, adding up all versions.
estimatedMaxMessagesThe most it can cost, as in the estimate. It can be null.
runsOne run per version, with the fields of List runs.

Errors

Statusdetails.codeWhen
400INVALID_REQUESTThe body is not valid; for example, more than four versions.
404AGENT_NOT_FOUNDThe agent does not exist or belongs to another workspace.
404EVAL_NOT_FOUNDThe suite does not exist in your workspace.
404EVAL_VERSION_NOT_FOUNDOne of the versions does not exist.
409EVAL_SUITE_STALEThe suite is archived or one of its scenarios no longer exists.
429EVAL_CAPACITYThe 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.
503EVAL_ENGINE_UNAVAILABLEThe evals service did not answer. Check List runs before retrying.

Notes

  • runs can 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 vN at that moment. If you save or publish later, the run keeps evaluating the same version. If two values in versions are 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.