
Description
The runtime skill is a guide to the assistant-ui runtime system, the state and action layer behind every chat interface. A runtime owns the messages, threads, branching and run lifecycle, and every primitive and hook reads from it through a shared AssistantClient. The skill covers the two ways to build one. LocalRuntime, created with useLocalRuntime, owns the message store, and you implement a single ChatModelAdapter run function, while branching, editing and regeneration come with it. ExternalStoreRuntime, created with useExternalStoreRuntime, works the other way: you own the messages, and UI features turn on based on the callbacks you supply. Framework adapters such as useChatRuntime from @assistant-ui/ai-sdk, and protocol runtimes such as useAssistantTransportRuntime, are built on one of the two. The references cover streaming, tool calls, approval gates and resumeRun for local runtimes, the handler matrix, branching and queueing for external stores, the state hooks useAui, useAuiState and useAuiEvent, adapters for attachments, speech, dictation and history, and realtime voice. The skill is for React developers building chat surfaces. It is listed on skills.sh under assistant-ui/skills, and its source is on GitHub in the same repository.…
Highlights
- Explains LocalRuntime and ExternalStoreRuntime
- Covers streaming, tool calls and approval gates
- State hooks: useAui, useAuiState and useAuiEvent
- Adapters for attachments, speech and history
- Realtime voice with RealtimeVoiceAdapter
Ratings & Reviews
No ratings yet
Be the first to rate runtime.
People also visit
runtime FAQ
What is the runtime skill for?
Creating and understanding the runtime that holds the state and actions behind an assistant-ui chat interface.
What is the difference between the two runtimes?
LocalRuntime owns the message store and needs one run function. ExternalStoreRuntime keeps the messages in your own code and enables UI features based on the callbacks you supply.
Does it cover voice?
Yes. A reference covers realtime duplex voice with RealtimeVoiceAdapter.
How do I install it?
Run npx skills add https://github.com/assistant-ui/skills --skill runtime.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
Where is the source?
On GitHub at assistant-ui/skills.
What are the best runtime alternatives?
Popular alternatives to runtime include assistant-ui, tools and ai-ui-patterns. See all runtime alternatives









