SKILL6.2K installs29

Runtime

Guide to the assistant-ui runtime system, single-thread state, and the imperative aui client API in @assistant-ui/react. Use when creating a runtime (useLocalRuntime with a ChatModelAdapter, useExternalStoreRuntime for Redux/Zustand, useRemoteThreadListRuntime, useAssistantTransportRuntime), wiring AssistantRuntimeProvider, or reading/mutating thread, message, composer, and attachment state. Covers the unified hooks useAui, useAuiState, useAuiEvent and the v0.15 property accessors (aui.thread, aui.threads, aui.message, aui.composer, aui.part; availability via aui.thread.source != null), the s.optional.<scope> state view, scope methods (append, cancelRun, startRun, resumeRun, message({index}), part({index}), composer().send), capabilities, adapters (attachment, speech, dictation, suggestion, feedback, history), realtime voice, and types (ThreadMessage, MessageState, MessagePart, MessageStatus, ChatModelRunResult). The v0.12-era legacy context hooks (useAssistantRuntime, useThreadRuntime

Type
Skill
Author
assistant-ui
GitHub stars
29
Installs
6.2K
Last updated
October 27, 2026

Install

npx skills add https://github.com/assistant-ui/skills --skill runtime

About this skill

Documents the assistant-ui runtime system in @assistant-ui/react, covering runtime creation (useLocalRuntime with a ChatModelAdapter, useExternalStoreRuntime for Redux/Zustand, useRemoteThreadListRuntime, useAssistantTransportRuntime) and the imperative aui client API. It's aimed at developers wiring AssistantRuntimeProvider or reading and mutating thread, message, composer, and attachment state. The skill also covers the unified hooks useAui, useAuiState, and useAuiEvent, scope methods like append and startRun, adapters for attachments and speech, and types such as ThreadMessage and ChatModelRunResult.

Summary written with AI assistance from the project's public description.


Categories


More from assistant-ui


Similar Skills