DOC-API-MODEL-schema-1frig4k431#overview
ThresholdConfig
Threshold configuration for triggering compaction
token_count and percentage are mutually exclusive alternatives. Independent tracked fields do not enforce this relationship.
Meaning and usage
Section ID: DOC-API-MODEL-schema-1frig4k431#meaning
See the definition above.
Usage profiles
Section ID: DOC-API-MODEL-schema-1frig4k431#fields
| Usage | Fields and validation |
|---|---|
| In requests | View fields |
| In responses | View fields |
In requests
Section ID: DOC-API-MODEL-schema-1frig4k431#request
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
Section ID: DOC-API-MODEL-schema-1frig4k431#request-field-tokencounttokenCount | string (int64) | Optional; explicit presence | Absolute token limit. Pattern: ^-?\d+$. |
Section ID: DOC-API-MODEL-schema-1frig4k431#request-field-percentagepercentage | string (int64) | Optional; explicit presence | % of model's context window. Pattern: ^-?\d+$. |
Request validation
Section ID: DOC-API-MODEL-schema-1frig4k431#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 | native.group.compaction_threshold | Threshold configuration for triggering compaction |
In responses
Section ID: DOC-API-MODEL-schema-1frig4k431#response
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
Section ID: DOC-API-MODEL-schema-1frig4k431#field-tokencountSection ID: DOC-API-MODEL-schema-1frig4k431#response-field-tokencounttokenCount | string (int64) | Optional; explicit presence | Absolute token limit. Pattern: ^-?\d+$. |
Section ID: DOC-API-MODEL-schema-1frig4k431#field-percentageSection ID: DOC-API-MODEL-schema-1frig4k431#response-field-percentagepercentage | string (int64) | Optional; explicit presence | % of model's context window. Pattern: ^-?\d+$. |
DOC-API-MODEL-schema-1frig4k431#validation
Request validation
Section ID: DOC-API-MODEL-schema-1frig4k431#response-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 | native.group.compaction_threshold | Threshold configuration for triggering compaction |
Where used
Section ID: DOC-API-MODEL-schema-1frig4k431#where-used
| Reference | Relationship |
|---|---|
| Get full conversation state | POST /api/v1/llm/conversation-state |
| Update context management settings | POST /api/v1/llm/update-context-management-settings |
| Create a new conversation thread | POST /api/v1/llm/create-thread |
Models containing this value
| Model | Relationship |
|---|---|
| CompactionConfig | Nested in model |
| CompactionConfig | Nested in model |
Download the public reference contract.
Document ID: DOC-API-MODEL-schema-1frig4k431