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

# ResponsesContextManagement

A server-side context management entry. With `compaction`, the provider compacts the conversation once input exceeds `compact_threshold` and returns a `compaction` output item; pass that item back in `input` on later turns.

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `CompactThreshold` | optionalnullable.OptionalNullable\[`int64`] | ➖ | Input token count at which server-side compaction is triggered. | 200000 |
| `Type` | `string` | ✔️ | The context management strategy. Currently only `compaction` is supported. | compaction |
| `AdditionalProperties` | map\[string]`any` | ➖ | N/A | \{ "compact\_threshold": 200000, "type": "compaction" } |
