docs: update ClickHouse chat agent example for generative UI#4251
Conversation
The example now ships a Next.js chat app that renders answers as charts, tables, stat cards and maps via a renderVisualization tool (json-render + shadcn), manages its system prompt as a versioned AI Prompt, and traces model calls in the run. Updates the overview, tech stack, features, code walkthrough and links to match.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
🧰 Additional context used📓 Path-based instructions (1)docs/**/*.mdx📄 CodeRabbit inference engine (docs/CLAUDE.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-03-10T12:44:14.176ZApplied to files:
📚 Learning: 2026-04-30T20:30:29.458ZApplied to files:
🔇 Additional comments (6)
WalkthroughThe guide now describes a ClickHouse chat agent that generates interactive charts, tables, stat cards, and maps through a validated 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Updates the ClickHouse chat agent example page to match the upgraded example (triggerdotdev/examples#124), which is now a fullstack generative-UI chat app rather than an agent-only project.
What changed
useChat+useTriggerChatTransport, no API route), arenderVisualizationtool taking json-render specs rendered with@json-render/shadcn+ shadcn charts (Recharts) + mapcn point maps, and a shared catalog that generates both the system-prompt component reference and tool-call validation.prompts.define()+chat.prompt.set()+chat.toStreamTextOptions({ registry })), with a warning thatexperimental_telemetrycomes from the stored prompt — the docs previously showed a staticsystem:string, which silently ships no LLM observability.renderVisualizationtool, the Next.js chat UI and registry.src/layout.Note: merge after triggerdotdev/examples#124 lands, so the GitHub file links resolve.
🤖 Generated with Claude Code