# TaskResult

**Kind:** Interface

**Source:** [`atloria-monorepo/libs/agent-core/src/benchmark/types.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/benchmark/types.ts#L79)

Result of running the agent on a single task.

## Properties

| Property | Type |
|---|---|
| `taskId` | `string` |
| `suite` | `BenchmarkTask['suite']` |
| `passed` | `boolean` |
| `hasChanges` | `boolean` |
| `agentPatch` | `string` |
| `durationMs` | `number` |
| `turns` | `number` |
| `tokens` | `{ input: number; output: number; total: number }` |
| `costUsd` | `number` |
| `toolCalls` | `ToolCallRecord[]` |
| `error` | `string` |
| `timedOut` | `boolean` |
| `failureCategory` | `FailureCategory` |
| `attemptIndex` | `number` |
| `difficulty` | `'easy' | 'medium' | 'hard'` |
| `language` | `string` |
| `repo` | `string` |
| `fileLocalization` | `FileLocalization` |
| `terminationReason` | `'success' | 'max_turns_hit' | 'timeout_hit' | 'harness_error' | 'no_progress' | 'duplicate_patch'` |
| `setupDurationMs` | `number` |
| `agentDurationMs` | `number` |
| `patchSaved` | `boolean` |
