Want to test every A2UI feature in one place—on the same page, across multiple pages, from Python, from the CLI, and via HTTP? Run the bundled showcase example:
Source: examples/python/30-a2ui-canvas/app.py
examples/python/30-a2ui-canvas/app.py
| Route / Page | What to test |
|---|---|
| /chat-canvas | Ask an agent to generate UI in chat while watching the live A2UI preview panel on the right |
/chat-canvas
| /canvas | Full-screen A2UI canvas with a Surface switcher dropdown to flip between multiple surfaces on one page |
/canvas
| /agent-canvas | Interactive Basic Catalog demo (Card, Text, Divider, TextField, CheckBox, Slider, Row, Button) with live updateDataModel and @aiui.surface_action |
/agent-canvas
Card
Text
Divider
TextField
CheckBox
Slider
Row
Button
updateDataModel
@aiui.surface_action
| /a2ui-settings | Live view of GET /api/surfaces/capabilities showing all 18 components, 14 functions, and supported protocol versions |
/a2ui-settings
GET /api/surfaces/capabilities
While the server is running on port 8099, push a brand-new surface "checkout" via curl:
8099
"checkout"
curl
Open /canvas, click Refresh, and pick checkout from the Surface selector—or open /canvas?surface=checkout directly.
checkout
/canvas?surface=checkout
Push a legacy v0.8 payload (surfaceUpdate + dataModelUpdate + beginRendering) to surface "legacy":
surfaceUpdate
dataModelUpdate
beginRendering
"legacy"
PraisonAIUI automatically upgrades it to v0.9 and renders it on /canvas?surface=legacy.
/canvas?surface=legacy