946 B
946 B
QA: Declarative Generative UI (A2UI — Dynamic Schema) — Mastra
Test Steps
- Navigate to
/demos/declarative-gen-ui - Verify the CopilotChat surface renders with the suggestion chips
- Click "Show a KPI dashboard"; verify the agent calls
generate_a2uiand a Card with 3-4Metriccomponents renders - Click "Pie chart — sales by region"; verify a
PieChartrenders with legend + SVG donut - Click "Bar chart — quarterly revenue"; verify the
BarChartrenders via Recharts with brand palette - Click "Status report"; verify
StatusBadge+InfoRowcompose inside a Card
Expected Results
- A2UI dynamic catalog resolves
Card,Metric,StatusBadge,InfoRow,PrimaryButton,PieChart,BarChartfrom./a2ui/renderers.tsx - The
generate_a2uitool on the Mastra weatherAgent produces operations that the@copilotkit/a2ui-rendererintercepts and renders.