> ## 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.

## Example Usage

```typescript theme={null}
import { ResponsesContextManagement } from "@openrouter/sdk/models";

let value: ResponsesContextManagement = {
  type: "compaction",
};
```

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `compactThreshold` | *number* | ➖ | Input token count at which server-side compaction is triggered. | 200000 |
| `type` | *string* | ✔️ | The context management strategy. Currently only `compaction` is supported. | compaction |
| `additionalProperties` | Record\<string, *any*> | ➖ | N/A | \{ "compact\_threshold": 200000, "type": "compaction" } |
