ContextManagementSettings
Configuration for context management
Usage profiles
| Usage | Fields and validation |
|---|---|
| In requests | View fields |
| In responses | View fields |
In requests
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
strategy | string (CONTEXT_STRATEGY_COMPACTION, CONTEXT_STRATEGY_WINDOWING, CONTEXT_STRATEGY_NONE) or integer (int32) | Optional | Context management strategy selected for the conversation. |
compactionConfig | CompactionConfig | Optional | Configuration applied when summarizing the conversation context. |
windowingConfig | WindowingConfig | Optional | Rules selecting the message window retained in model context. |
selectiveExclusionConfig | SelectiveExclusionConfig | Optional | Rules selecting content to omit from the model context. |
Values of strategy
How stored conversation history is selected or summarized for model context.
| Value | No. | Form | Meaning |
|---|---|---|---|
CONTEXT_STRATEGY_COMPACTION | 1 | Canonical | Use completed compaction summaries and remaining history; fall back to windowing when no completed summary is available. |
CONTEXT_STRATEGY_WINDOWING | 2 | Canonical | Keep a bounded window of recent conversation messages according to the windowing configuration. |
CONTEXT_STRATEGY_NONE | 3 | Canonical | Pass the conversation history without applying compaction or windowing. |
In responses
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
strategy | string (CONTEXT_STRATEGY_COMPACTION, CONTEXT_STRATEGY_WINDOWING, CONTEXT_STRATEGY_NONE) or integer (int32) | Optional | Context management strategy selected for the conversation. |
compactionConfig | CompactionConfig | Optional | Configuration applied when summarizing the conversation context. |
windowingConfig | WindowingConfig | Optional | Rules selecting the message window retained in model context. |
selectiveExclusionConfig | SelectiveExclusionConfig | Optional | Rules selecting content to omit from the model context. |
Values of strategy
How stored conversation history is selected or summarized for model context.
| Value | No. | Form | Meaning |
|---|---|---|---|
CONTEXT_STRATEGY_COMPACTION | 1 | Canonical | Use completed compaction summaries and remaining history; fall back to windowing when no completed summary is available. |
CONTEXT_STRATEGY_WINDOWING | 2 | Canonical | Keep a bounded window of recent conversation messages according to the windowing configuration. |
CONTEXT_STRATEGY_NONE | 3 | Canonical | Pass the conversation history without applying compaction or windowing. |
Where used
| Reference | Relationship |
|---|---|
| Create a new conversation thread | POST /api/v1/llm/create-thread |
| Update context management settings | POST /api/v1/llm/update-context-management-settings |
| Get full conversation state | POST /api/v1/llm/conversation-state |
Download the public reference contract.
Document: DOC-API-MODEL-context-management-settings.