发布

  • docs: update ClickHouse chat agent example for generative UI (#4251)

    frostbyte_neo 发布于 2026-07-14 12:59:15 +00:00 | 456 次提交 在此版本后已推送到 main

    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

    • Overview / tech stack / features rewritten: Next.js chat app
      (useChat + useTriggerChatTransport, no API route), a
      renderVisualization tool 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.
    • The agent section now shows the versioned AI
      Prompt
      pattern (prompts.define()
    • chat.prompt.set() + chat.toStreamTextOptions({ registry })), with
      a warning that experimental_telemetry comes from the stored prompt —
      the docs previously showed a static system: string, which silently
      ships no LLM observability.
    • New sections for the shared catalog, the renderVisualization
      tool, the Next.js chat UI and registry.
    • Relevant code links updated to the new src/ layout.
    • Learn more cards now include Frontend and AI Prompts.

    Note: merge after triggerdotdev/examples#124 lands, so the GitHub file
    links resolve.

    🤖 Generated with Claude Code

    下载附件