hashbrown

UiChatResourceOptions

Options for the UI chat resource.

UiChatResourceOptions
@typeTools
Chat.AnyTool
@typeState
apiUrl

The API URL to use for the UI chat resource.

components

The components the model may render. Replace them later with setComponents.

debounce
number

The debounce time for the UI chat resource.

debugName
string

The debug name for the UI chat resource.

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

The initial messages for the UI chat resource.

state
State

The initial shared agent state.

system

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
TransportOrFactory

Custom transport override for the UI chat resource.