hashbrown

ChatResourceOptions

Configuration options for the chat resource.

@template Tools @property {string | Signal} system - The system (assistant) prompt. @property {string | Signal} model - The model identifier to use for the chat. @property {Tools[]} [tools] - Optional array of bound tools available to the chat. @property {Chat.Message<string, Tools>[] | Signal<Chat.Message<string, Tools>[]>} [messages] - Optional initial list of chat messages. @property {number} [debounce] - Optional debounce interval in milliseconds between user inputs. @property {string} [debugName] - Optional name used for debugging in logs. @property {string} [apiUrl] - Optional override for the API base URL.

API

ChatResourceOptions
@typeTools
Chat.AnyTool