A2UI 1.0: Flutter's Generative UI Gets Guardrails, Multi-Catalogs, and a 46% Token Cut
Guardrails catch invalid nesting before any render, Express halves generation latency, and callAgentFunction makes generated UIs into real tools. That combination moves GenUI from a research demo to something a team can ship and debug.
Generative UI for Flutter is moving beyond chat boxes. A2UI 1.0, the framework behind Flutter's genui package, now called a2ui_flutter, lets AI agents respond with real, interactive Flutter interfaces instead of text. The release splits the old package into a2ui_core, a2ui_flutter, and a2ui_agent, and drops the Transport abstraction so projects can use their own SSE, WebSocket, or HTTP layers.
The five new capabilities target the practical problems that kept GenUI demos out of production. Hierarchical guardrails use allowedParents and allowedChildren in the component catalog, visible in the model prompt and re-checked at render time, so a Button can't silently contain a DataTable. The Express reasoning format rewrites component trees as function calls, cutting a five-component example's character count by 46% and halving a medical dashboard generation from 10 to 5 seconds. Multi-catalog support lets platform and business teams own separate component catalogs. callAgentFunction lets deterministic clicks like steppers and sliders call backend functions directly, updating order cards in under a second without a model round-trip. Extended metadata attaches route markers, security context, and trace tokens to surfaces, components, catalogs, and actions.
Removing the Transport abstraction is a sane decision: project-specific transport is already in place, and forcing a package wrapper only adds friction.
Two-layer validation for component nesting—rules visible in the prompt and re-checked at render—is a workable compromise between model freedom and UI integrity.
callAgentFunction is the capability that turns generated UIs from static screenshots into interactive tools, since it avoids a model round-trip for every micro-adjustment.
Express format's token reduction directly attacks the streaming latency that makes GenUI feel sluggish, so the 46% figure is worth measuring on your own models.