assistant-ui

@generative-a11y/assistant-ui

Turn public assistant-ui ThreadRuntime state into response, tool, approval, and source events.

Public exports

assistant-ui integration uses only getState and subscribe from your ThreadRuntime.

ExportKindPurpose
bindThreadRuntimeFunctionCreate one adapter subscription
THREAD_ADAPTER_METADATAFrozen constantList supported events and methods
BindThreadRuntimeOptionsInterfaceOptions for the binding
ThreadBindingInterfaceCleanup method for the binding

Events the adapter can report

Public thread state can report interruptions but not general retries or connection changes. Tool failures and sources depend on content parts from assistant-ui.