hashbrown

UiChatResourceOptions

Options for the UI chat resource.

API

UiChatResourceOptions
@typeTools
Chat.AnyTool
apiUrl
ReactiveOption<string>

The API URL to use for the UI chat resource.

components
UiKitInput<ExposedComponent<any>>[]

The components to use for the UI chat resource.

debounce
number

The debounce time for the UI chat resource.

debugName
string

The debug name for the UI chat resource.

examples
SystemPrompt

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

messages
Chat.Message<s.Infer<UiChatMessageOutput>, Tools>[]

The initial messages for the UI chat resource.

model
ReactiveOption<ModelInput>

The model to use for the UI chat resource.

structuredOutput
Chat.Api.StructuredOutputOptions

Controls how the provider is asked to produce structured output.

system
ReactiveOption<string | SystemPrompt>

The system prompt to use for the UI chat resource.

threadId
ReactiveOption<string | undefined>

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

tools
Tools[]

The tools to use for the UI chat resource.

transport
TransportOrFactory

Custom transport override for the UI chat resource.