showcase/integrations/pydantic-ai/qa/declarative-json-render.md
/demos/declarative-json-renderagent_server.py running and healthy; it mounts the prompt-specialized
agent at /byoc_json_render/src/app/api/copilotkit-declarative-json-render/route.ts proxies to
${AGENT_URL}/byoc_json_render/ (AGENT_URL defaults to
http://localhost:8000)OPENAI_API_KEY set for the agent backend@json-render/core + @json-render/react present in package.json
(pinned to 0.18.0)/demos/declarative-json-render.data-testid="json-render-root" wrapper appears in the assistant bubble.data-testid="metric-card" renders inside the wrapper.data-testid="bar-chart" or data-testid="pie-chart") renders inside the wrapper.data-testid="pie-chart" renders with multiple category slices + legend.useVisibility must be used within a VisibilityProvider console error (<JSONUIProvider> must wrap <Renderer>).data-testid="bar-chart" renders with month labels.metric-card renders; no console errors.{ root, elements } spec is more verbose than hashbrown's token stream.src/agents/byoc_json_render_agent.py; the
byoc_ prefix on the backend module, the HTTP mount, and the
byoc_json_render agent id are deliberate and stay.