ThresholdConfig
Threshold configuration for triggering compaction
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 |
|---|---|---|---|
tokenCount | integer (int32) | Optional; explicit presence | Absolute token limit. Minimum: -2147483648. Maximum: 2147483647. |
percentage | integer (int32) | Optional; explicit presence | % of model's context window. Minimum: -2147483648. Maximum: 2147483647. |
Request validation
These rules apply when this value is supplied in a request. Request validation does not guarantee that response fields are present or satisfy the same rules.
| Applies to | Rule | Requirement |
|---|---|---|
| Message | Cannot be set together | tokenCount, percentage |
In responses
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
tokenCount | integer (int32) | Optional; explicit presence | Absolute token limit. Minimum: -2147483648. Maximum: 2147483647. |
percentage | integer (int32) | Optional; explicit presence | % of model's context window. Minimum: -2147483648. Maximum: 2147483647. |
Request validation
These rules apply when this value is supplied in a request. Request validation does not guarantee that response fields are present or satisfy the same rules.
| Applies to | Rule | Requirement |
|---|---|---|
| Message | Cannot be set together | tokenCount, percentage |
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 |
| CompactionConfig | Nested in model |
| CompactionConfig | Nested in model |
Download the public reference contract.
Document: DOC-API-MODEL-threshold-config.