> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verial.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Task Runs

> SDK methods for the Task Runs resource.

REST reference: [/api-reference/resources/task-runs](/api-reference/resources/task-runs).

## Methods

```typescript theme={null}
verial.taskRuns.list({ runId, cursor?, limit? })
verial.taskRuns.get({ id })
verial.taskRuns.complete({ id })
verial.taskRuns.cancel({ id })
```

## Example

```typescript theme={null}
for await (const tr of await verial.taskRuns.list({ runId: 'run_01H...' })) {
  console.log(tr.id, tr.phase, tr.verdict, tr.score)
}

await verial.taskRuns.complete({ id: 'tr_01H...' })
```
