A2UI
An open-source library introduced by Google's Jetpack Compose team that defines a declarative JSON format and protocol allowing AI agents to generate interactive native UI at runtime. Client applications render the UI using Compose components, which avoids the risks associated with code injection.
Timeline (last 90 days)
The Google Jetpack Compose team has released the A2UI (Agent to UI) library, which lets agents describe interfaces declaratively in JSON, with the client rendering them using native Compose components.
A2UI is an open JSON format that describes UI declaratively; the agent returns only a JSON representation of the UI and no code that the client needs to execute.
A2UI's conceptual model includes the Catalog (a collection of components and functions that serves as the contract) and the Surface (a region of UI controlled by the agent, updated via protocol messages).
The A2UI specification defines a basic catalog, which the Jetpack Compose renderer implements with Material 3 components; most components work out of the box, but the three media components image, video and audio player require developers to plug in their own library (for example Coil).
A2UI's integration path has three layers: the Chat Session receives the agent's streaming responses and extracts the raw A2UI JSON messages; the Message Processor uses a Parser to convert the JSON into a semantic representation, validates it against the Catalog, and maps it to the Surface model; finally the A2UI Surface composable renders it into native Compose UI.
In A2UI, every component message sent by the agent is validated against the Catalog schema before reaching the UI; content that does not conform to the contract (such as unknown component names or properties with mismatched types) is blocked before entering the UI tree, and an error message is sent to the agent to trigger a self-correction loop.
The interfaces rendered by A2UI use real Material components, have native performance, respond to dark mode, automatically inherit the colors, shapes and fonts customized by the enclosing MaterialTheme, and have accessibility capabilities such as TalkBack, font scaling and keyboard navigation working out of the box.
A2UI mitigates latency through progressive rendering: display begins as soon as the root component arrives, container components show loading placeholders for child components that have not yet arrived, and child components animate in with Material 3 motion schemes once they arrive.
Each Surface's data model in A2UI is built on Compose snapshot state, and properties bound to paths are derived state, so an update from any source triggers automatic recomposition of the bound components.
In A2UI, user actions are sent back through the outbound events flow exposed by the processor; a tap generates an A2UI action message sent back to the agent, with a context containing the property values that the agent declared in advance and that are resolved from the data model at the moment of the tap.
4 more timeline events
All Facts (15)
文章介绍的六大AI智能体协议为MCP、A2A、UCP、AP2、A2UI和AGUI
95%UnverifiedA2UI is an open JSON format that describes UI declaratively; the agent returns only a JSON representation of the UI and no code that the client needs to execute.
50%UnverifiedA2UI's conceptual model includes the Catalog (a collection of components and functions that serves as the contract) and the Surface (a region of UI controlled by the agent, updated via protocol messages).
50%UnverifiedThe A2UI specification defines a basic catalog, which the Jetpack Compose renderer implements with Material 3 components; most components work out of the box, but the three media components image, video and audio player require developers to plug in their own library (for example Coil).
50%UnverifiedA2UI's integration path has three layers: the Chat Session receives the agent's streaming responses and extracts the raw A2UI JSON messages; the Message Processor uses a Parser to convert the JSON into a semantic representation, validates it against the Catalog, and maps it to the Surface model; finally the A2UI Surface composable renders it into native Compose UI.
50%UnverifiedIn A2UI, every component message sent by the agent is validated against the Catalog schema before reaching the UI; content that does not conform to the contract (such as unknown component names or properties with mismatched types) is blocked before entering the UI tree, and an error message is sent to the agent to trigger a self-correction loop.
50%UnverifiedThe interfaces rendered by A2UI use real Material components, have native performance, respond to dark mode, automatically inherit the colors, shapes and fonts customized by the enclosing MaterialTheme, and have accessibility capabilities such as TalkBack, font scaling and keyboard navigation working out of the box.
50%UnverifiedA2UI mitigates latency through progressive rendering: display begins as soon as the root component arrives, container components show loading placeholders for child components that have not yet arrived, and child components animate in with Material 3 motion schemes once they arrive.
50%UnverifiedEach Surface's data model in A2UI is built on Compose snapshot state, and properties bound to paths are derived state, so an update from any source triggers automatic recomposition of the bound components.
50%UnverifiedIn A2UI, user actions are sent back through the outbound events flow exposed by the processor; a tap generates an A2UI action message sent back to the agent, with a context containing the property values that the agent declared in advance and that are resolved from the data model at the moment of the tap.
50%UnverifiedFunctions declared by the agent in the Catalog (such as opening a URL or validating input) are not executed by the agent itself; they are sent back to the client as action messages, and the client decides how to handle them, leaving the authority to execute side effects on the application side.
50%UnverifiedWhen customizing components in A2UI, replacing a basic catalog button only requires implementing the composable function of the corresponding interface; adding a new component type requires implementing the A2UI Component interface, whose name and description are serialized into the Catalog schema sent to the backend as the basis for the agent to decide whether to use the component, so they must be written descriptively enough.
50%UnverifiedIn A2UI, properties define the data a component handles, distinguishing static properties (with the value inlined in the property) from dynamic properties (which reference a data model path, reading subscriptions via the bind API and writing back via bind updater).
50%UnverifiedA2UI's choice of declarative JSON description means the agent only needs to output the target state rather than a sequence of operations, and the client can decide for itself how to render, how to animate and how to reuse components, which is also the precondition for it to be carried by native Compose components.
50%UnverifiedThe Google Jetpack Compose team has released the A2UI (Agent to UI) library, which lets agents describe interfaces declaratively in JSON, with the client rendering them using native Compose components.
50%