# buildPrediction

**Kind:** Function

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

Convert a TaskResult to SWE-bench prediction format.
Used for both successful and failed tasks (autosubmit pattern —
even partial patches are worth submitting).

## Signature

```ts
function buildPrediction(result: TaskResult, modelName: string): SWEBenchPrediction
```

## Parameters

| Name | Type |
|---|---|
| `result` | `TaskResult` |
| `modelName` | `string` |

**Returns:** `SWEBenchPrediction`
