hashbrown

UiChatOptions

Options for the useUiChat hook.

API

UiChatOptions
@typeTools
Chat.AnyTool
components
ExposedComponent<any>[]

The components that can be rendered by the chat.

debounceTime
number

The debounce time between sends to the endpoint. default: 150

debugName
string

The name of the hook, useful for debugging.

messages
Chat.Message<UiChatSchema, Tools>[]

The initial messages for the chat. default: []

model
KnownModelIds

The LLM model to use for the chat.

system
string | SystemPrompt

The system message to use for the chat.

tools
Tools[]

The tools to make available for the chat. default: []