A2UI generative UI framework for native agent apps
Use A2UI when an agent must generate app UI across multiple native clients or operate across a trust boundary. A2UI is a generative UI framework that exchanges validated interface data through the A2UI protocol, then maps it to native widgets through framework adapters; it gives up arbitrary model-generated code for explicit capability boundaries. Checked 2026-11-27: Apache-2.0, last push 2026-11-26.
Streaming, Security, and Native Rendering
- ✓A2UI transports interface descriptions as validated data. Its agent SDK parses model output, expands macros, and turns it into wire-stable protocol messages that renderers can consume progressively.
- ✓A2UI limits agent behavior through schema validation, catalog negotiation, and explicit capability grants. The design prevents a remote agent from receiving unrestricted access to sensitive data or executable application logic.
- ✓A2UI renderers map a shared in-memory UI model to native widgets rather than HTML or WebViews. The documented targets include React, Angular and Lit on the web, plus Flutter, SwiftUI and Jetpack Compose for mobile clients.
- ✓The A2UI architecture separates inference, transport, and rendering. Agent SDKs handle prompts, skills, validation, and protocol conversion; core packages parse state and expressions; adapters and catalogs complete the native presentation.
- ✓A2UI agent SDKs support catalog negotiation and model-output compilation in Python, TypeScript and Dart, giving teams a shared protocol with implementation choices suited to their agent stack.
- ✓A2UI includes an evaluation suite with schema checks, assertions and an LLM judge. This gives teams a starting point for assessing generated interface quality rather than relying only on visual inspection.
When to Use A2UI
- •Use A2UI when one agent must deliver the same agentic UI concept to several platforms. The shared protocol and separate native adapters make this a better fit than maintaining a custom JSON contract for every client.
- •Choose A2UI when a remote or third-party agent crosses a trust boundary. Validated interface data and a developer-approved component catalog offer a clearer boundary than allowing the model to submit executable code.
- •A2UI fits products that need the agent to assemble a task-specific flow dynamically. Instead of forcing users through fixed application screens, the agent can request the controls needed for the current step.
- •Use A2UI for server-driven applications whose interface changes in response to conversation context. Progressive message delivery supports streaming interface updates as the agent revises its plan.
- •A2UI is appropriate when visual fidelity matters and the host app should keep its existing framework. Native rendering avoids requiring a WebView or an HTML-based presentation layer.
Packages and Getting Started
The README points developers to the Quickstart for a full-stack application, A2UI Composer for creating interface JSON without installation, and A2UI Theater for inspecting streaming examples. Package-level choices include a2ui-core and a2ui-agent in Python, @a2ui/web_core, @a2ui/agent and renderer adapters in TypeScript, a2ui_core, a2ui_agent and a2ui_flutter in Dart, and Swift packages distributed through Swift Package Manager. Exact package-manager commands and version pins are not clearly documented in the README; follow the linked Quickstart for the current setup procedure. Packages marked as unpublished can be consumed from source.
Strengths
- ✓A2UI gives the application owner control over the agent's rendering vocabulary. That is a real security advantage when a remote agent must not access payment details, personal information, financial records or arbitrary application functions.
- ✓A2UI reduces protocol work across client stacks by keeping the agent-to-renderer contract separate from each native adapter. Teams can retain React, Angular, Lit, Flutter, SwiftUI or JetPack Compose without asking every agent to understand each widget API.
- ✓The A2UI architecture makes validation and compilation part of the delivery path rather than an optional prompt instruction. Catalog negotiation and schema checks turn capability control into an application concern.
- ✓A2UI ships enough supporting material to evaluate the approach, including schema assertions and an LLM judge. The broader package set also provides a path from agent generation through transport and native rendering.
Current Limits and Roadmap Work
- △According to the README roadmap, native design-system building blocks, a common runtime template system, and isolated execution for shared component logic remain future work.
- △The README places Dart skill generation and official decision-model support on the roadmap. Teams depending on those paths need to account for extra integration or wait for later releases.
- △Installation commands and a single package setup procedure are not clearly documented in the README. Getting started depends on following the linked Quickstart and selecting the correct language-specific packages.
- △Shared state between an A2UI surface and its MCP host remains roadmap work. An embedded MCP deployment should therefore account for integration work that is not yet presented as available functionality.
Other Ways to Build Agentic UIs
Who Should Adopt A2UI
A2UI is designed for teams building server-driven or agentic applications across more than one native client, especially where model output must cross a trust boundary without becoming arbitrary executable code. It suits platform engineers, agent developers, and application teams willing to adopt A2UI’s protocol, catalog, and renderer conventions.
Frequently Asked Questions
A2UI is open source under the Apache-2.0 licence, which permits commercial use subject to that licence’s terms. The repository README also identifies A2UI as an Apache 2.0 licensed project.
A2UI renderers can map its interface data to React, Angular and Lit components, as well as widgets for Flutter, SwiftUI and JetPack Compose. Each adapter connects a framework-specific component layer to the shared A2UI core.
A2UI does not give agents arbitrary code execution. Agents communicate through schema-validated interface data, while the application controls which standard capabilities and catalog components are available to the model.
A2UI provides packages for Python, TypeScript, Dart and Flutter, and Swift. The collection includes agent SDKs, protocol cores, framework renderers and supporting tooling in those language ecosystems.
Yes. The README states that A2UI packages marked as not published yet can be used directly from source. The listed unpublished package is the TypeScript VegaChart catalog.
A2UI includes an MCP catalog for rendering messages and UI resources returned by MCP tools. It also provides Python packages that connect its agent SDK to the Agent-to-Agent protocol and the Agent Development Kit.
The problem it solves
A2UI addresses a specific gap between agent output and application UI: language models can emit text, code, or structured data, but remote agents need a controlled way to request native interface components without receiving executable code. A2UI supplies that contract through the A2UI protocol, schema validation, negotiated catalogs, and framework-specific renderers.
How to use
A typical A2UI project starts with an agent SDK that generates a skill, negotiates an allowed component catalog and asks the model for interface data. The model returns an A2UI-compatible description, which the SDK validates and converts into transport messages. On the client, an A2UI core package parses those messages into a framework-neutral representation, evaluates expressions and manages state. A renderer adapter then maps the result to native widgets. User actions and function results can flow back toward the agent, allowing the interface to adapt during the conversation while the catalog continues to constrain what can be rendered.
Related repositories
Want a second opinion on A2UI?
Ask an AI that can read this page — one click and you get its take on A2UI.
