> ## 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 |
| - | - | - | - | - |
| `compact_threshold` | *OptionalNullable\[int]* | ➖ | Input token count at which server-side compaction is triggered. | 200000 |
| `type` | *str* | ✔️ | The context management strategy. Currently only `compaction` is supported. | compaction |
| `__pydantic_extra__` | Dict\[str, *Any*] | ➖ | N/A | \{ "compact\_threshold": 200000, "type": "compaction" } |
