ChatKit
ModelsExpand Collapse
class ChatKitWorkflow { 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
class ChatSession { 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.
class ChatSessionChatKitConfigurationParam { 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: { 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: { 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).
class ChatSessionWorkflowParam { 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: Hash[Symbol, String | bool | Float]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.
class ChatKitResponseOutputText { annotations, text, type } Assistant response text accompanied by optional annotations.
Assistant response text accompanied by optional annotations.
class ChatKitThread { id, created_at, object, 3 more } Represents a ChatKit thread and its current status.
Represents a ChatKit thread and its current status.
status: { type} | { reason, type} | { 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.
class ChatKitThreadAssistantMessageItem { id, content, created_at, 3 more } Assistant-authored message within a thread.
Assistant-authored message within a thread.
class ChatKitThreadItemList { 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[ChatKitThreadUserMessageItem { id, attachments, content, 5 more } | ChatKitThreadAssistantMessageItem { id, content, created_at, 3 more } | ChatKitWidgetItem { id, created_at, object, 3 more } | 3 more]A list of items
A list of items
class ChatKitThreadUserMessageItem { id, attachments, content, 5 more } User-authored messages within a thread.
User-authored messages within a thread.
content: Array[{ text, type} | { text, type}]Ordered content elements supplied by the user.
Ordered content elements supplied by the user.
class ChatKitThreadAssistantMessageItem { id, content, created_at, 3 more } Assistant-authored message within a thread.
Assistant-authored message within a thread.
class ChatKitWidgetItem { id, created_at, object, 3 more } Thread item that renders a widget payload.
Thread item that renders a widget payload.
class ChatKitClientToolCall { 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.
class ChatKitTask { 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.
class ChatKitThreadUserMessageItem { id, attachments, content, 5 more } User-authored messages within a thread.
User-authored messages within a thread.
content: Array[{ text, type} | { text, type}]Ordered content elements supplied by the user.
Ordered content elements supplied by the user.