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 to use for the UI chat resource.

debounce
number

The debounce time for the UI chat resource.

debugName
string

The debug name for the UI chat resource.

examples
SystemPrompt

Optional prompt-based UI examples to include in the wrapper schema description.

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

The initial messages for the UI chat resource.

state
State

The initial shared agent state.

system
ReactiveOption<string | SystemPrompt>

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.