Configuration options for the chat resource.
API
interface ChatResourceOptions<Tools extends Chat.AnyTool> {apiUrl?: string;debounce?: number;debugName?: string;messages?: Chat.Message<string, Tools>[] | Signal<Chat.Message<string, Tools>[]>;model: KnownModelIds |
Signal < KnownModelIds >;system: string | Signal <string>;tools?: Tools[];}ChatResourceOptions
@typeToolsChat.AnyToolapiUrl
stringThe API URL to use for the chat.
debounce
numberThe debounce time for the chat.
debugName
stringThe debug name for the chat.
messages
Chat.Message<string, Tools>[] | Signal<Chat.Message<string, Tools>[]>The initial messages for the chat.
model
KnownModelIds | Signal<KnownModelIds>The model to use for the chat.
system
string | Signal<string>The system prompt to use for the chat.
tools
Tools[]The tools to use for the chat.