# ModelCompactorConfig

**Kind:** Interface

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

## Properties

| Property | Type |
|---|---|
| `endpoint` | `string` |
| `apiKey` | `string` |
| `model` | `string` |
| `apiVersion` | `string` |
| `useV1Endpoint` | `boolean` |
| `maxSummaryTokens` | `number` |
| `domainFields` | `string[]` |
| `parallel` | `boolean` |
| `timeout` | `number` |
| `onCompactionComplete` | `(summary: CompactionSummary, durationMs: number) => void` |
| `onCompactionError` | `(error: Error) => void` |
