AG-UI as the Agent–UI Contract Layer
AG-UI is a typed event contract between an agent backend and a frontend, turning streamed agent state into UI. This diagram maps the layers and shows where human review plugs in.
Loading…
Topic
4 posts about A2UI. Every summary links to the original.
See the idea
AG-UI is a typed event contract between an agent backend and a frontend, turning streamed agent state into UI. This diagram maps the layers and shows where human review plugs in.
A practical guide to applying A2UI: define the component boundary, separate tool data from UI resources, choose native or embedded rendering, and verify the action path.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
A2UI 1.0 is the first stable release of an open protocol for generative UI, enabling AI agents to respond with interactive screens instead of text. The protocol includes bidirectional function calls, accessibility support, and extensions for metadata. Developers can use open-source renderer SDKs for web, Android, and iOS, along with agent SDKs for Python, TypeScript, and Dart. Companies such as Atlassian, Alation, Bloomberg, and ByteDance are already building with A2UI. The protocol supports fast, reliable UI generation through A2UI Express and system-one decision models, with server-side data binding to keep sensitive values secure.
Agent conversations historically returned text-only responses, lacking interactive UI for complex tasks like booking flights. A2UI is Google’s open standard for Generative UI, letting agents declare UI intent as declarative data rather than executable code, ensuring security through a client-side component catalog. CopilotKit provides the integration stack, using the AG-UI protocol to connect agent frameworks like Google ADK and LangChain to frontends, rendering A2UI surfaces across React, Angular, Vue, and Slack. Setup requires defining component schemas with Zod on the client and registering them with the CopilotKit provider, while the agent emits A2UI operations that stream as typed events with self-healing. Bi-directional surfaces enable multi-step flows by sending user inputs back along the stream, with client-side validation catching errors before reaching the agent.
A2UI is an agent-optimized protocol for generative UI where agents describe interfaces from a client’s component catalog. Generating those descriptions directly as JSON constrained by a complex schema proved slow and error-prone for LLMs. This release introduces swappable inference formats, notably A2UI Express, which requires up to 3x fewer tokens to produce the same UI and reduces latency by up to 3x. For screens with predefined layouts, decision models like Jev can reduce layout decision latency by up to 80x by making structured decisions in 100-300ms instead of generating full JSON. The SDK generates the appropriate prompt instructions and compiler from the catalog schema, and the post benchmarks four formats on 51 tasks using Gemini 3.5 Flash, with Express performing well even without thinking.
Agentic UIs must balance deep customization with seamless integration: MCP Apps provide standard-web flexibility in an iframe, while A2UI renders declarative JSON through the host application's native components. The post presents three architectural patterns for combining them, including A2UI over MCP, where MCP servers return application/a2ui+json resources for native rendering and can separate static MCP Resources from dynamic Tool calls. This arrangement avoids iframe-related visual fragmentation, keeps backend tool access separate from frontend rendering, and supports rendering across React, Flutter, or Angular through a predefined component catalog. The broader combination also reserves MCP Apps for highly tailored experiences and describes A2UI in MCP Apps, where an embedded app can process A2UI responses and route user actions through an AppBridge; the conclusion recommends choosing among patterns according to project constraints.
The best engineering reads, once a week.