assistant-chat.tsx
7.09 KB
-
feat(web): P3 — /assistant 独立聊天页(Claude 式透明步骤,接入 PAC MCP) · 02f05176
GPT/Claude 式聊天页:模型经 MCP 自主调用 PAC 患者工具,过程透明可见。 - use-assistant-chat:fetch+ReadableStream 消费 /assistant/chat 的 SSE(镜像 use-script-stream, Bearer header;EventSource 不支持自定义 header),把 text/tool_call/tool_result 事件组织成 消息内的有序 blocks(文本 + 工具步骤)。 - assistant-chat:消息气泡 + **工具步骤卡(可展开看 入参 + 返回数据)**= Claude 式"看得到怎么做到" + 模型切换(deepseek/gemini/qwen)+ 流式渲染 + 示例 prompt + 停止。 - /assistant 路由(AuthGate + AGENT_INVOKE 权限)。 前端 tsc 0 错误;后端 P1(MCP)+P2(agent loop)已端到端验证。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
luoqi committed