Options for the UI chat resource.
API
interface UiChatResourceOptions<Tools extends Chat.AnyTool, State = unknown> {apiUrl?: ReactiveOption<string>;components: UiKitInput <
ExposedComponent <
any >> [];debounce?: number;debugName?: string;messages?: Chat.MessageInput<s.Infer<UiChatMessageOutput>, Tools>[];state?: State;system: ReactiveOption <string>;threadId?: ReactiveOption<string | undefined>;tools?: Tools[];transport?: TransportOrFactory;}UiChatResourceOptions
@typeToolsChat.AnyTool@typeStateapiUrl
ReactiveOption<string>The API URL to use for the UI chat resource.
components
UiKitInput<ExposedComponent<any>>[]The components the model may render. Replace them later with
setComponents.
debounce
numberThe debounce time for the UI chat resource.
debugName
stringThe debug name for the UI chat resource.
messages
Chat.MessageInput<s.Infer<UiChatMessageOutput>, Tools>[]The initial messages for the UI chat resource.
state
StateThe initial shared agent state.
system
ReactiveOption<string>The system prompt to use for the UI chat resource.
threadId
ReactiveOption<string | undefined>Optional opaque AG-UI thread identity.
tools
Tools[]The tools to use for the UI chat resource.
transport
TransportOrFactoryCustom transport override for the UI chat resource.