ChatKit
ModelsExpand Collapse
ChatKitWorkflow = object { id, state_variables, tracing, version } Workflow metadata and state returned for the session.
Workflow metadata and state returned for the session.
ChatKitSessions
Cancel chat session
Create ChatKit session
ChatKitThreads
List ChatKit thread items
Retrieve ChatKit thread
Delete ChatKit thread
List ChatKit threads
ModelsExpand Collapse
ChatSession = object { id, chatkit_configuration, client_secret, 7 more } Represents a ChatKit session and its resolved configuration.
Represents a ChatKit session and its resolved configuration.
Resolved ChatKit feature configuration for the session.
ChatSessionChatKitConfigurationParam = object { automatic_thread_titling, file_upload, history } Optional per-session configuration settings for ChatKit behavior.
Optional per-session configuration settings for ChatKit behavior.
automatic_thread_titling: optional object { enabled } Configuration for automatic thread titling. When omitted, automatic thread titling is enabled by default.
Configuration for automatic thread titling. When omitted, automatic thread titling is enabled by default.
file_upload: optional object { enabled, max_file_size, max_files } Configuration for upload enablement and limits. When omitted, uploads are disabled by default (max_files 10, max_file_size 512 MB).
Configuration for upload enablement and limits. When omitted, uploads are disabled by default (max_files 10, max_file_size 512 MB).
ChatSessionWorkflowParam = object { id, state_variables, tracing, version } Workflow reference and overrides applied to the chat session.
Workflow reference and overrides applied to the chat session.
state_variables: optional map[string or boolean or number]State variables forwarded to the workflow. Keys may be up to 64 characters, values must be primitive types, and the map defaults to an empty object.
State variables forwarded to the workflow. Keys may be up to 64 characters, values must be primitive types, and the map defaults to an empty object.
ChatKitResponseOutputText = object { annotations, text, type } Assistant response text accompanied by optional annotations.
Assistant response text accompanied by optional annotations.
ChatKitThread = object { id, created_at, object, 3 more } Represents a ChatKit thread and its current status.
Represents a ChatKit thread and its current status.
status: object { type } or object { reason, type } or object { reason, type } Current status for the thread. Defaults to active for newly created threads.
Current status for the thread. Defaults to active for newly created threads.
ChatKitThreadAssistantMessageItem = object { id, content, created_at, 3 more } Assistant-authored message within a thread.
Assistant-authored message within a thread.
ChatKitThreadItemList = object { data, first_id, has_more, 2 more } A paginated list of thread items rendered for the ChatKit API.
A paginated list of thread items rendered for the ChatKit API.
data: array of ChatKitThreadUserMessageItem { id, attachments, content, 5 more } or ChatKitThreadAssistantMessageItem { id, content, created_at, 3 more } or ChatKitWidgetItem { id, created_at, object, 3 more } or 3 moreA list of items
A list of items
ChatKitThreadUserMessageItem = object { id, attachments, content, 5 more } User-authored messages within a thread.
User-authored messages within a thread.
content: array of object { text, type } or object { text, type } Ordered content elements supplied by the user.
Ordered content elements supplied by the user.
ChatKitThreadAssistantMessageItem = object { id, content, created_at, 3 more } Assistant-authored message within a thread.
Assistant-authored message within a thread.
ChatKitWidgetItem = object { id, created_at, object, 3 more } Thread item that renders a widget payload.
Thread item that renders a widget payload.
ChatKitClientToolCall = object { id, arguments, call_id, 7 more } Record of a client side tool invocation initiated by the assistant.
Record of a client side tool invocation initiated by the assistant.
ChatKitTask = object { id, created_at, heading, 5 more } Task emitted by the workflow to show progress and status updates.
Task emitted by the workflow to show progress and status updates.
ChatKitThreadUserMessageItem = object { id, attachments, content, 5 more } User-authored messages within a thread.
User-authored messages within a thread.
content: array of object { text, type } or object { text, type } Ordered content elements supplied by the user.
Ordered content elements supplied by the user.