Options for the useUiChat hook.
API
interface UiChatOptions<Tools extends Chat.AnyTool> {components: ExposedComponent < any > [];debounceTime?: number;debugName?: string;messages?: Chat.Message<UiChatSchema, Tools>[];model: KnownModelIds ;system: string | SystemPrompt ;tools?: Tools[];}UiChatOptions
@typeToolsChat.AnyToolcomponents
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.
messages
Chat.Message<UiChatSchema, Tools>[]The initial messages for the chat. default: []
model
KnownModelIdsThe LLM model to use for the chat.
system
string | SystemPromptThe system message to use for the chat.
tools
Tools[]The tools to make available for the chat. default: []