Skip to main content
Task Runs represent the outcome of a single Task within a Run. Each task run is executed in its own Playground and contains Eval Runs with individual assertion results.
Endpoints not yet in OpenAPI spec.

Endpoints

MethodEndpointDescription
GET/task-runs?run_id={runId}List task runs for a run
GET/task-runs/{id}Get task run details
POST/task-runs/{id}/completeMark a task run as complete
POST/task-runs/{id}/cancelCancel a task run

Task Run Object

FieldTypeDescription
idstringUnique identifier
run_idstringParent Run
task_idstringSource Task
playground_idstringPlayground used for execution
statusStatusCurrent status (pending, running, completed, cancelled, failed)
verdictVerdict | nullPass/fail verdict, set on completion
scorenumber | nullTask score (0-1), set on completion
snapshotobject | nullFrozen copy of the task definition at execution time
started_atdatetimeWhen execution started
completed_atdatetime | nullWhen execution finished

SDK Example

// List task runs for a run
const taskRuns = await verial.taskRuns.list({ runId: 'run_abc123' })

// Get task run details
const details = await verial.taskRuns.get({ id: taskRuns.data[0].id })

// Mark as complete
await verial.taskRuns.complete({ id: details.id })

// Cancel a running task
await verial.taskRuns.cancel({ id: details.id })