Options for the useUiChat hook.
API
interface UiChatOptions<Tools extends Chat.AnyTool> {components: UiKitInput <
ExposedComponent <
any >> [];debounceTime?: number;debugName?: string;examples?: SystemPrompt;messages?: Chat.Message<UiChatSchema, Tools>[];model: ModelInput; structuredOutput?: Chat.Api.StructuredOutputOptions;system: string | SystemPrompt; threadId?: string;tools?: Tools[];transport?: TransportOrFactory;}UiChatOptions
@typeToolsChat.AnyToolcomponents
UiKitInput<ExposedComponent<any>>[]The components that can be rendered by the chat.
debounceTime
numberThe debounce time between sends to the endpoint. default: 150
debugName
stringThe name of the hook, useful for debugging.
examples
SystemPromptOptional prompt-based UI examples to include in the wrapper schema description.
messages
Chat.Message<UiChatSchema, Tools>[]The initial messages for the chat. default: []
model
ModelInputThe LLM model to use for the chat.
structuredOutput
Chat.Api.StructuredOutputOptionsControls how the provider is asked to produce structured output.
system
string | SystemPromptThe system message to use for the chat.
threadId
stringOptional thread identifier used to load or continue an existing conversation.
tools
Tools[]The tools to make available for the chat. default: []
transport
TransportOrFactoryOptional transport override for this hook.