Skip to main content

ThresholdConfig

Threshold configuration for triggering compaction

Usage profiles​

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
tokenCountinteger (int32)Optional; explicit presenceAbsolute token limit. Minimum: -2147483648. Maximum: 2147483647.
percentageinteger (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 toRuleRequirement
MessageCannot be set togethertokenCount, percentage

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
tokenCountinteger (int32)Optional; explicit presenceAbsolute token limit. Minimum: -2147483648. Maximum: 2147483647.
percentageinteger (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 toRuleRequirement
MessageCannot be set togethertokenCount, percentage

Where used​

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

Download the public reference contract.

Document: DOC-API-MODEL-threshold-config.