Options for the UI chat resource.
API
interface UiChatResourceOptions<Tools extends Chat.AnyTool> {apiUrl?: string;components: ExposedComponent < any > [];debounce?: number;debugName?: string;messages?: Chat.Message<s.Infer<UiChatMessageOutput>, Tools>[];model: KnownModelIds ;system: string |
Signal <string> |
SystemPrompt |
Signal < SystemPrompt >;tools?: Tools[];}UiChatResourceOptions
@typeToolsChat.AnyToolapiUrl
stringThe API URL to use for the UI chat resource.
components
ExposedComponent<any>[]The components to use for the UI chat resource.
debounce
numberThe debounce time for the UI chat resource.
debugName
stringThe debug name for the UI chat resource.
messages
Chat.Message<s.Infer<UiChatMessageOutput>, Tools>[]The initial messages for the UI chat resource.
model
KnownModelIdsThe model to use for the UI chat resource.
system
string | Signal<string> | SystemPrompt | Signal<SystemPrompt>The system prompt to use for the UI chat resource.
tools
Tools[]The tools to use for the UI chat resource.