Create a suite

SDK platic.evals.suites.create()

Group the scenarios you want to test together. Send name and 1 to 50 scenarios in members. With agentId, the suite belongs to that agent; without it, the suite belongs to the workspace and can be used with any agent.

Example

await platic.evals.suites.create({ name: "Smoke", members: [{ scenarioId: "greets" }] });

Request body

{
  "name": "Sales evals",
  "description": "What the sales agent must do well before publishing.",
  "agentId": "Xq8mTe2LwP4kZ1aB9cDf",
  "members": [
    { "scenarioId": "books_tuesday_appointment" },
    { "scenarioId": "no_invented_prices", "version": 2, "nTrials": 5 }
  ]
}
FieldTypeDescriptionRequired
namestring1 to 100 characters.✓
descriptionstringUp to 1000 characters.—
agentIdstringThe agent the evals belong to. You need permission to edit that agent, and from then on changing or archiving the suite requires it too.—
membersarray1 to 50 scenarios.✓
members[].scenarioIdstringThe scenario.✓
members[].versionnumber | nullA pinned version of the scenario. null (default) uses the newest active version when each run starts.—
members[].nTrialsnumber | nullTrials of the scenario in this suite (1–32). null (default) uses the scenario's.—

Response

201 with the suite:

{
  "status": "success",
  "data": {
    "suiteId": "s8Kd2LmQ",
    "name": "Sales evals",
    "description": "What the sales agent must do well before publishing.",
    "agentId": "Xq8mTe2LwP4kZ1aB9cDf",
    "members": [
      { "scenarioId": "books_tuesday_appointment", "version": null, "nTrials": null },
      { "scenarioId": "no_invented_prices", "version": 2, "nTrials": 5 }
    ],
    "archived": false,
    "createdAt": "2026-10-30T16:02:11.000Z",
    "updatedAt": "2026-10-30T16:02:11.000Z"
  }
}

Response fields

The same as in List suites.

Errors

Statusdetails.codeWhen
400INVALID_REQUESTThe body is not valid; for example, members is empty or has more than 50 scenarios. details.issues has the path of each problem.

Notes

  • It requires permission to edit agents (any) and, with agentId, permission to edit that agent.
  • Next: estimate a run of the suite against the versions you want to evaluate.