hashbrown

UiChatOptions

Options for the useUiChat hook.

API

UiChatOptions
@typeTools
Chat.AnyTool
components
UiKitInput<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.

examples
SystemPrompt

Optional prompt-based UI examples to include in the wrapper schema description.

messages
Chat.Message<UiChatSchema, Tools>[]

The initial messages for the chat. default: []

model
ModelInput

The LLM model to use for the chat.

structuredOutput
Chat.Api.StructuredOutputOptions

Controls how the provider is asked to produce structured output.

system
string | SystemPrompt

The system message to use for the chat.

threadId
string

Optional thread identifier used to load or continue an existing conversation.

tools
Tools[]

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

transport
TransportOrFactory

Optional transport override for this hook.