ChatKit
ModelsExpand Collapse
type ChatKitWorkflow struct{…}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
type ChatSession struct{…}Represents a ChatKit session and its resolved configuration.
Represents a ChatKit session and its resolved configuration.
Resolved ChatKit feature configuration for the session.
Resolved rate limit values.
Current lifecycle state of the session.
Workflow metadata for the session.
type ChatSessionChatKitConfiguration struct{…}ChatKit configuration for the session.
ChatKit configuration for the session.
Automatic thread titling preferences.
Upload settings for the session.
History retention configuration.
type ChatSessionChatKitConfigurationParamResp struct{…}Optional per-session configuration settings for ChatKit behavior.
Optional per-session configuration settings for ChatKit behavior.
AutomaticThreadTitling ChatSessionChatKitConfigurationParamAutomaticThreadTitlingRespoptionalConfiguration 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.
FileUpload ChatSessionChatKitConfigurationParamFileUploadRespoptionalConfiguration 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).
type ChatSessionWorkflowParamResp struct{…}Workflow reference and overrides applied to the chat session.
Workflow reference and overrides applied to the chat session.
StateVariables map[string, ChatSessionWorkflowParamStateVariableUnionResp]optionalState 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.
type ChatKitResponseOutputText struct{…}Assistant response text accompanied by optional annotations.
Assistant response text accompanied by optional annotations.
Annotations []ChatKitResponseOutputTextAnnotationUnionOrdered list of annotations attached to the response text.
Ordered list of annotations attached to the response text.
type ChatKitThread struct{…}Represents a ChatKit thread and its current status.
Represents a ChatKit thread and its current status.
Status ChatKitThreadStatusUnionCurrent status for the thread. Defaults to active for newly created threads.
Current status for the thread. Defaults to active for newly created threads.
type ChatKitThreadAssistantMessageItem struct{…}Assistant-authored message within a thread.
Assistant-authored message within a thread.
Content []ChatKitResponseOutputTextOrdered assistant response segments.
Ordered assistant response segments.
Annotations []ChatKitResponseOutputTextAnnotationUnionOrdered list of annotations attached to the response text.
Ordered list of annotations attached to the response text.
type ChatKitThreadItemList struct{…}A paginated list of thread items rendered for the ChatKit API.
A paginated list of thread items rendered for the ChatKit API.
Data []ChatKitThreadItemListDataUnionA list of items
A list of items
type ChatKitThreadUserMessageItem struct{…}User-authored messages within a thread.
User-authored messages within a thread.
Attachments []ChatKitAttachmentAttachments associated with the user message. Defaults to an empty list.
Attachments associated with the user message. Defaults to an empty list.
Content []ChatKitThreadUserMessageItemContentUnionOrdered content elements supplied by the user.
Ordered content elements supplied by the user.
type ChatKitThreadAssistantMessageItem struct{…}Assistant-authored message within a thread.
Assistant-authored message within a thread.
Content []ChatKitResponseOutputTextOrdered assistant response segments.
Ordered assistant response segments.
Annotations []ChatKitResponseOutputTextAnnotationUnionOrdered list of annotations attached to the response text.
Ordered list of annotations attached to the response text.
type ChatKitThreadItemListDataChatKitClientToolCall struct{…}Record of a client side tool invocation initiated by the assistant.
Record of a client side tool invocation initiated by the assistant.
type ChatKitThreadItemListDataChatKitTask struct{…}Task emitted by the workflow to show progress and status updates.
Task emitted by the workflow to show progress and status updates.
type ChatKitThreadUserMessageItem struct{…}User-authored messages within a thread.
User-authored messages within a thread.
Attachments []ChatKitAttachmentAttachments associated with the user message. Defaults to an empty list.
Attachments associated with the user message. Defaults to an empty list.
Content []ChatKitThreadUserMessageItemContentUnionOrdered content elements supplied by the user.
Ordered content elements supplied by the user.