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.
| Export | Kind | Purpose |
|---|---|---|
| bindThreadRuntime | Function | Create one adapter subscription |
| THREAD_ADAPTER_METADATA | Frozen constant | List supported events and methods |
| BindThreadRuntimeOptions | Interface | Options for the binding |
| ThreadBinding | Interface | Cleanup 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.