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

ClientContext

Opaque caller-supplied attributes attached to a conversation message.

Values are strings, including values such as "false". The schema allows at most 32 pairs, keys of at most 64 characters, and values of at most 1,024 characters. Keep the entire map well below 8 KiB: Travila also applies an encoded-size limit that includes field overhead and drops context that exceeds it. Short page identifiers and a few relevant values are preferable to a page dump; an oversized map is not automatically shortened.

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-1i2sndrl93#meaning

See the definition above.

Usage profiles​

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

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

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

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1i2sndrl93#request-field-valuesvaluesMap from string to stringOptionalArbitrary client-supplied context for this message (e.g. page, referrer, device, in-app flow). Keys/values are opaque strings. Maximum properties: 32.

Request validation​

Section ID: DOC-API-MODEL-schema-1i2sndrl93#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
valuesMax Pairs32
valuesKeys · Maximum length64
valuesValues · Maximum length1024

In responses​

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

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1i2sndrl93#field-valuesSection ID: DOC-API-MODEL-schema-1i2sndrl93#response-field-valuesvaluesMap from string to stringOptionalArbitrary client-supplied context for this message (e.g. page, referrer, device, in-app flow). Keys/values are opaque strings.
Section ID: DOC-API-MODEL-schema-1i2sndrl93#validation

Request validation​

Section ID: DOC-API-MODEL-schema-1i2sndrl93#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
valuesMax Pairs32
valuesKeys · Maximum length64
valuesValues · Maximum length1024

Where used​

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

ReferenceRelationship
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
Append a message without generatingPOST /api/v1/llm/append-message
Send a message to a conversationPOST /api/v1/llm/send-message
ReceiveMessageRequestAPI JSON uses JSON field names (camelCase).
ClientToolDispatchAPI JSON uses JSON field names (camelCase).
Models containing this value
ModelRelationship
MessageNested in model
MessageNested in model

Download the public reference contract.

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