Voice agentsAgent tests
Cancel a test run
Mark an active run cancelled. A case in progress stops before its next turn and records no result. A case already past its last turn (being judged, or whose last turn ended the conversation or handed it off) may still record one. Results already recorded are kept.
Authorization
bearerAuth AuthorizationBearer <token>
A Tandem bearer token. Requests are scoped to the organization the token belongs to; no organization header is required.
In: header
Path Parameters
agentId*string
The agent's unique ID.
runId*string
The test run's unique ID.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agent-media/agents/string/test-runs/string/cancel"{ "run": { "runId": "string", "agentId": "string", "version": "string", "configHash": "string", "testIds": [ "string" ], "repeats": { "property1": 0, "property2": 0 }, "status": "queued", "counts": { "total": 0, "done": 0, "pass": 0, "fail": 0, "error": 0, "invalid": 0 }, "usage": { "inputTokens": 0, "outputTokens": 0 }, "simulatorModelId": "string", "judgeModelId": "string", "agentTemperature": 0, "triggeredBy": { "kind": "user", "userId": "string" }, "createdAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z", "ttl": 0 }}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}