Skip to main content
Section ID: DOC-API-MODEL-schema-1h5dj58uph#overview

TurnContextConfig

Configuration for turn-aware LLM generation

Turn context tells the model the current generation number and remaining allowance, with tool guidance based on that allowance. This annotation is enabled by default and is not persisted in message history. Its presentation options belong in the generation configuration reference; the annotation itself does not change the run limit.

Type-reference view: API Schema 9frhv4euve, API Schema 9ftjkkjhfa. Request and response views describe this type; they do not declare an endpoint.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-1h5dj58uph#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-1h5dj58uph#fields

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

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

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1h5dj58uph#request-field-enabledenabledbooleanOptionalEnable turn context injection into system prompt Default: true
Section ID: DOC-API-MODEL-schema-1h5dj58uph#request-field-includetoolguidanceincludeToolGuidancebooleanOptionalInclude tool usage guidance based on remaining turns Default: false (can enable for agentic workflows)
Section ID: DOC-API-MODEL-schema-1h5dj58uph#request-field-formatformatstring (minimal, standard, verbose)Required in requestsFormat for turn context "minimal": "[Turn 2/5]" "standard": "[Turn 2 of 5 - 3 turns remaining. Plan your response accordingly.]" "verbose": Includes detailed behavioral guidance Default: "standard"

Request validation​

Section ID: DOC-API-MODEL-schema-1h5dj58uph#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
formatAllowed valuesminimal, standard, verbose

In responses​

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

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1h5dj58uph#field-enabledSection ID: DOC-API-MODEL-schema-1h5dj58uph#response-field-enabledenabledbooleanOptionalEnable turn context injection into system prompt Default: true
Section ID: DOC-API-MODEL-schema-1h5dj58uph#field-includetoolguidanceSection ID: DOC-API-MODEL-schema-1h5dj58uph#response-field-includetoolguidanceincludeToolGuidancebooleanOptionalInclude tool usage guidance based on remaining turns Default: false (can enable for agentic workflows)
Section ID: DOC-API-MODEL-schema-1h5dj58uph#field-formatSection ID: DOC-API-MODEL-schema-1h5dj58uph#response-field-formatformatstringRequired in requestsFormat for turn context "minimal": "[Turn 2/5]" "standard": "[Turn 2 of 5 - 3 turns remaining. Plan your response accordingly.]" "verbose": Includes detailed behavioral guidance Default: "standard"
Section ID: DOC-API-MODEL-schema-1h5dj58uph#validation

Request validation​

Section ID: DOC-API-MODEL-schema-1h5dj58uph#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
formatAllowed valuesminimal, standard, verbose

Where used​

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

ReferenceRelationship
Create an agent profilePOST /api/v1/agent-profiles/create
Get an agent profilePOST /api/v1/agent-profiles/get
Import a prompt libraryPOST /api/v1/agent-profiles/import
List agent profilesPOST /api/v1/agent-profiles/list
Update an agent profilePOST /api/v1/agent-profiles/update
Withdraw your rating on a messagePOST /api/v1/llm/delete-message-rating
Get full conversation statePOST /api/v1/llm/conversation-state
Rate an assistant messagePOST /api/v1/llm/rate-message
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
Update context management settingsPOST /api/v1/llm/update-context-management-settings
Update default generation configPOST /api/v1/llm/update-default-generation-config
Get the caller's end-user profilePOST /api/v1/enduser/get
Append a message without generatingPOST /api/v1/llm/append-message
Create a new conversation threadPOST /api/v1/llm/create-thread
Send a message to a conversationPOST /api/v1/llm/send-message
Update the caller's default generation configPOST /api/v1/enduser/update-generation-config
ReceiveMessageRequestAPI JSON uses JSON field names (camelCase).
ClientToolDispatchAPI JSON uses JSON field names (camelCase).
Models containing this value
ModelRelationship
GenerationConfigNested in model
GenerationConfigNested in model

Download the public reference contract.

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