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
curl -X POST "https://api.platic.ai/v1/evals/suites" \
-H "Authorization: Bearer $PLATIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Smoke",
"members": [{ "scenarioId": "greets" }]
}' 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 }
]
} | Field | Type | Description | Required |
|---|---|---|---|
name | string | 1 to 100 characters. | ✓ |
description | string | Up to 1000 characters. | — |
agentId | string | The agent the evals belong to. You need permission to edit that agent, and from then on changing or archiving the suite requires it too. | — |
members | array | 1 to 50 scenarios. | ✓ |
members[].scenarioId | string | The scenario. | ✓ |
members[].version | number | null | A pinned version of the scenario. null (default) uses the newest active version when each run starts. | — |
members[].nTrials | number | null | Trials 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
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | The 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.