A2UI 1.0 Standardizes Agent-Drawn Native UI Across Six Platforms
A2UI 1.0: UI drawn by an Agent, natively rendered on 6 platforms!
Author: Carson带你学Android Tags: AI编程
Introduction
Recently, Google officially released A2UI 1.0—the first stable version of the generative UI open protocol
Agent only describes "what to show", and the App renders it with native components.
Table of Contents
- What is A2UI?
- What are the core selling points?
- How to use it?
- How do Android developers integrate?
- Compared to existing solutions, what makes A2UI better?
- A2UI's current limitations
- Summary
What is A2UI?
A2UI stands for Agent-to-User Interface, and it is the UI contract between an Agent and an App.
GitHub address: https://github.com/a2ui-project/a2ui
The Agent does not write code, does not generate HTML, and does not touch your rendering logic—for example, the Agent says: "Show a flight card, departing at 8:12".
The App receives this JSON and draws it with native components. Compose, SwiftUI, React—use whatever framework you draw with.
Overall it has three layers:
| Layer | Responsibility | Key Components |
|---|---|---|
| Reasoning layer | Agent + LLM decide what to show | A2UI Skill, Express DSL |
| Transport layer | Protocol message streaming | Agent SDK, SSE / WebSocket |
| Rendering layer | Native components draw UI | Renderer + Catalog (component directory) |
The transport layer is not bound to any protocol—SSE, WebSocket, AG-UI, A2A, MCP all work.
A2UI completely decouples "describing UI" from "rendering UI". The Agent manages semantics, the App manages the picture.
Three Levels of Generative UI
A2UI divides generative UI into three levels:
| Level | Method | Advantages | Limitations |
|---|---|---|---|
| ① Controlled | Call pre-built Widgets, fill data | 100% host control | Locked into pre-built views, new flows require a release |
| ② Composition | Freely combine from component catalog | Adapts to any prompt; native and safe | — |
| ③ Code Gen | Generate HTML/CSS/JS, run in iframe | Fully custom | Isolated from design system, Web-only |
A2UI recommends Composition mode.
The Agent does not "draw arbitrarily", it "picks and draws" from the component catalog you registered. This is the best balance of flexibility and safety.
What are the core selling points?
Mainly 4 major selling points:
① Six renderers, one Agent delivers to multiple platforms
A2UI 1.0 officially maintains 6 renderers:
| Renderer | Platform | 1.0 status |
|---|---|---|
| React | Web | ✅ |
| Angular | Web | ✅ |
| Lit | Web | ✅ |
| Flutter | Mobile / Web / Desktop | ✅ |
| SwiftUI | iOS | ✅ |
| Jetpack Compose | Android | ⏳ 0.9.1 |
There are 22 community renderers—Vue, React Native, Svelte, Lynx, WeChat Mini Program, and even terminal CLI implementations!
② Catalog guardrail: Agent can only use components you registered
This is A2UI's most interesting design: security does not rely on "limiting the Agent's capabilities", but on the component catalog (Catalog) as a guardrail.
You define available components in catalog.json (simplified version):
{
"components": {
"FlightCard": {
"properties": {
"airline": { "type": "string" },
"departTime": { "type": "string" },
"price": { "type": "number" }
},
"required": ["airline", "departTime", "price"]
}
}
}
The Agent SDK does two things server-side:
- 1: Convert the Catalog into a Skill (teach the LLM to write UI using only these components);
- 2: After model output, the compiler validates each item against the Catalog Schema.
| What the Agent decides | What the Developer decides |
|---|---|
| Whether to show a card | Which components are available (Catalog) |
| Which components to use, how to arrange them | What data binds inside components |
| How to phrase copy | Every message passes Schema validation |
The Agent can never use components outside the Catalog, nor inject executable code.
③ Two-way communication and accessibility
| New feature | Description |
|---|---|
| Two-way function calls | Components can immediately query availability without waiting for the Agent's next reply |
| Accessibility support | Protocol-level native support for Accessibility |
| Extended metadata | Supports arbitrary extensions fields |
| MCP Apps integration | A2UI can be embedded in MCP Apps, and vice versa |
| Protocol stability promise | 1.0 means no more breaking changes |
Among these, two-way communication is the most practical.
In the v0.9 era, the Agent only knew after the user clicked "book".
After v1.0, users can check inventory instantly when selecting a flight—interaction latency is greatly reduced.
④ Big companies have already integrated
A2UI is not just a specification; real products already use it:
| Company | Use case |
|---|---|
| Atlassian | AI Agents in Jira use A2UI cards to request additional information |
| Alation | AIOS uses A2UI to build data Feeds; the same Feed renders in both Claude and Alation |
| Bloomberg | Integrating (use case not public) |
| ByteDance | Lynx framework releases A2UI renderer |
| Gemini Notebook uses A2UI cards to guide users in selecting format and style |
Google uses A2UI deeply in its own Gemini. This signal is stronger than any white paper.
How to use it?
Let's walk through the entire process from "user speaks" to "UI is drawn".
Step 1: Agent writes UI with Express DSL
The LLM does not directly output JSON—it is too long and too slow.
A2UI designs a compact DSL called A2UI Express:
<a2ui>
root = Column([head, list])
head = Text("### Flights to Madrid")
list = List(_template($/flights, fare))
fare = FlightOption(
$airline, $departTime, $arriveTime,
$origin, $destination, $price,
Event("select_flight", {id: $id})
)
</a2ui>
$prefix = bind data model field;Event(...)= define user interaction action.
Step 2: Agent SDK compiles and validates
The server-side Agent SDK stream-parses the Express output:
- Parse token by token, convert into intermediate representation;
- Compare against the Catalog Schema item by item;
- Generate a JSON message stream and send it down.
Four message types:
| Message type | Direction | Purpose |
|---|---|---|
createSurface |
↓ Agent → App | Create a rendering surface |
updateComponents |
↓ Agent → App | Send flattened component list |
updateDataModel |
↓ Agent → App | Send data model |
action |
↑ App → Agent | User operation feedback |
Step 3: Renderer renders natively
After the client receives the message, it:
- 1: Create a Surface (a screen area);
- 2: Parse the component list, rebuild the tree structure;
- 3: Draw with native components;
- 4: Local data binding—operations like +/- passenger count are updated locally without sending back to the Agent.
The compiled JSON looks like this:
[
{
"id": "root",
"component": "Column",
"children": ["head", "list"]
},
{
"id": "head",
"component": "Text",
"text": "### Flights to Madrid"
},
{
"id": "fare",
"component": "FlightOption",
"airline": {"@path": "/flights/0/airline"}
}
]
{"@path": "..."}is the v1.0 data binding syntax. v0.9 used{"path": "..."}.
Step 4: User action feedback
When the user clicks "select flight", the Renderer sends an action message back to the Agent, along with contextual data.
The Agent decides the next step—maybe showing a booking confirmation card.
Summary
The entire flow: LLM writes Express → SDK compiles and validates → JSON stream sent down → native rendering → action feedback.
How do Android developers integrate?
This is the part Android developers care most about.
Current state of the Compose renderer
The official Compose renderer (androidx.a2ui-compose) is currently at v0.9.1, with 1.0 forthcoming.
| Project | Package name | Protocol version | Platform |
|---|---|---|---|
| Google official | androidx.a2ui-compose |
v0.9.1 | Android |
| uny/a2ui-compose | dev.ynagai.a2ui:a2ui-material3 |
v1.0 | Compose Multiplatform |
| BinaryTape/a2ui-kmp | ai.littlepress.a2ui:material3-a2ui |
v0.9.x | Compose Multiplatform |
| lmee/A2UI-Android | — | v0.8 | Android (20+ components) |
Core integration logic
Regardless of which renderer you use, the integration approach is the same:
- 1: Define
catalog.jsonon the server (declare available components); - 2: Use
SkillGeneratorto generate a Skill (teach the LLM to use your components); - 3: At Agent runtime, the SDK compiles LLM output into A2UI JSON messages;
- 4: The client uses
MessageProcessorto maintain the component tree and data model; - 5: The Compose Renderer draws the component tree as native UI.
Key point: you need to deploy the Agent SDK (Python / TypeScript) server-side. A2UI is a full-stack protocol, not a client-only dependency.
One-click experience
A2UI provides a Travel Demo (travel planning Agent) that you can run in 5 minutes:
git clone https://github.com/a2ui-project/labs
cd labs/samples/travel-a2ui
./scripts/quickstart.sh flutter # Start the Flutter client
The current Demo has React and Flutter clients. The Compose version needs to be integrated yourself using a community renderer.
Want to try A2UI + Compose now? The community uny/a2ui-compose already supports the v1.0 protocol and is ready to use.
Compared to existing solutions, what makes A2UI better?
Agent-returned UI is not limited to A2UI. Horizontal comparison:
| Dimension | A2UI | WebView rendering | Plain text | Self-built protocol |
|---|---|---|---|---|
| Rendering method | Native components | WebView | Text layout | Native components |
| Performance | Native speed | WebView overhead | Fastest | Native speed |
| Brand consistency | ✅ Fully inherited | ❌ Requires extra adaptation | ❌ Cannot customize | ✅ Fully inherited |
| Security | ✅ Catalog validation | ⚠️ iframe sandbox | ✅ No code execution | Depends on implementation |
| Cross-platform | ✅ 6+ renderers | ⚠️ Web only | ✅ All platforms | ❌ Need to build every end |
| Interaction capability | ✅ Forms / Actions | ✅ Full interaction | ❌ Read-only | ✅ Custom |
| Development cost | Low | Medium | Lowest | High |
| Ecosystem | Open source + big company endorsement | No standard | No standard | No standard |
Plain text is too weak, WebView is too heavy, self-built protocols are too expensive.
A2UI sits in the most comfortable middle position: uses declarative JSON to pass UI, balancing native experience and security.
A2UI's current limitations
A2UI 1.0 is the first stable version, but "stable" does not mean "mature":
- 1: The official Compose renderer is still v0.9.1—if you don't want to rely on community solutions, you have to wait for Google's 1.0;
- 2: Limited component library—the built-in basic components cover simple scenarios; complex business UI requires extending the Catalog yourself;
- 3: No official performance benchmarks—the blog provides no latency, memory, or frame rate data; performance-sensitive scenarios require running your own benchmarks;
- 4: The community is still early—17.7k Stars and 22 community renderers show decent popularity, but most are still on v0.8 / v0.9.x;
- 5: Requires server-side cooperation—A2UI is a full-stack protocol; the server must deploy the Agent SDK and compiler, not a pure client-side solution.
A2UI 1.0 solves the "protocol standardization" problem, not the "out-of-the-box" problem.
Finally
A2UI 1.0's core contribution: pushes Agent→UI interaction from "everyone for themselves" to a "unified protocol".
It is not a UI framework, not a component library, but a contract—which defines "how to pass UI" between Agent and App.
Would you let an Agent draw your App's UI? Share in the comments!
📎 Reference: https://a2ui.org/