Skip to main content
Section ID: 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

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

Section ID: DOC-API-MODEL-schema-1frig4k431#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1frig4k431#request-field-tokencounttokenCountstring (int64)Optional; explicit presenceAbsolute token limit. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1frig4k431#request-field-percentagepercentagestring (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 toRuleRequirement
Messagenative.group.compaction_thresholdThreshold configuration for triggering compaction

In responses​

Section ID: DOC-API-MODEL-schema-1frig4k431#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1frig4k431#field-tokencountSection ID: DOC-API-MODEL-schema-1frig4k431#response-field-tokencounttokenCountstring (int64)Optional; explicit presenceAbsolute token limit. Pattern: ^-?\d+$.
Section ID: DOC-API-MODEL-schema-1frig4k431#field-percentageSection ID: DOC-API-MODEL-schema-1frig4k431#response-field-percentagepercentagestring (int64)Optional; explicit presence% of model's context window. Pattern: ^-?\d+$.
Section ID: 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 toRuleRequirement
Messagenative.group.compaction_thresholdThreshold configuration for triggering compaction

Where used​

Section ID: DOC-API-MODEL-schema-1frig4k431#where-used

ReferenceRelationship
Get full conversation statePOST /api/v1/llm/conversation-state
Update context management settingsPOST /api/v1/llm/update-context-management-settings
Create a new conversation threadPOST /api/v1/llm/create-thread
Models containing this value
ModelRelationship
CompactionConfigNested in model
CompactionConfigNested in model

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-1frig4k431