Copilots

Grounding an assistant in your app with assistant-ui copilots (@assistant-ui/react). Use when steering assistant behavior with useAssistantInstructions, feeding lazy app-state context via useAssistantContext({ getContext }), exposing rendered components with makeAssistantVisible(Component, { clickable, editable }), building two-way interactable state with useAssistantInteractable and Interactables(), or registering instructions and tools imperatively through useAui().modelContext().register({ getModelContext }). Reach for this when the assistant should read the current page, click or edit UI, or read and update component state through auto-generated update_{name} tools. For LLM tools and tool-call UI use the tools skill; for runtime and thread state use the runtime skill.

diamitani 55132bd 5 files · 29.1 KB Updated

File contents

diamitani/rostr-agent/tree/main/Knowledge/Mac Mini archives/chatuitemplate/.agents/skills/copilots commit 55132bd083

Frequently asked questions

npx skillmds@latest add diamitani/copilots