Enterprise
CopilotKit integration with MS Agent Framework (Python)
Copy-paste command to clone the canonical starter
npx copilotkit@latest init --framework ms-agent-python
Natural conversation with frontend tool execution
Default CopilotChat re-themed via CopilotKitCSSProperties
Out-of-the-box tool rendering — backend defines the tools; the frontend adds zero custom renderers and relies on CopilotKit's built-in default UI
Single branded wildcard renderer via useDefaultRenderTool — the same app-designed card paints every tool call
Agent invokes client-side handlers registered with useFrontendTool
useFrontendTool with an async handler — agent awaits a client-side async operation (simulated notes DB query) and uses the returned result
User approves agent actions before execution
Agent requests approval via useFrontendTool with an async handler; the approval UI pops up as an app-level modal OUTSIDE the chat, and a completion callback resolves the pending tool Promise with the user's decision
Interactive approval/decision surface rendered inline in the chat via the high-level `useHumanInTheLoop` hook
Time-picker card rendered inline via useHumanInTheLoop for a booking flow
Agent uses tools to trigger UI generation
Backend agent tools rendered as UI components
Long-running agent tasks with generated UI
Bidirectional agent state — UI writes preferences, agent writes notes back via state_update
Supervisor delegates to research / writing / critique sub-agents with a live delegation log
Per-token state delta streaming from agent to UI
Docked sidebar chat via <CopilotSidebar />
Floating popup chat via <CopilotPopup />
Customize CopilotChat via its slot system
Minimal custom chat surface built on useAgent
Full chat implementation built from scratch on useAgent
Visible reasoning/thinking chain alongside the final answer
Interactive component rendered inline in the chat via the lower-level `useInterrupt` primitive — direct control over the interrupt lifecycle
Canonical A2UI BYOC — custom catalog (Card/StatusBadge/Metric/InfoRow/PrimaryButton) wired via a2ui.catalog on the provider; runtime injects the render_a2ui tool automatically
A2UI rendering against a known client-side schema
MCP server-driven UI via activity renderers
Resolve interrupts from a plain button grid — no chat, no useInterrupt render prop
Frontend provides read-only context to the agent via useAgentContext
Built-in CopilotChatReasoningMessage renders without a custom slot
Sequential tool calls with reasoning tokens rendered side-by-side
Streaming hierarchical JSON UI spec rendered via @json-render/react, with a Zod-validated catalog (MetricCard + PieChart + BarChart)
Canonical polished starter chat — brand fonts, theme tokens, suggestion pills
Image and PDF uploads via CopilotChat attachments, processed by a vision-capable agent
Bearer-token gate via runtime onRequest hook with unauthenticated / authenticated states
Streaming structured output via @hashbrownai/react, rendering a sales dashboard catalog (MetricCard + PieChart + BarChart)
Agent generates UI from an arbitrary component library
Agent-authored UI that can invoke frontend sandbox functions from inside the iframe
Speech-to-text via @copilotkit/voice with a bundled sample audio button
Forward a typed config object (tone / expertise / response length) from the provider to the agent's dynamic system prompt