fix(wecom): 企微助手多轮记忆 + 患者页面链接 + 纯文字渠道指令
修两个线上问题:
- 上下文断:原来每条消息只传当前一句,无历史 → "该患者"无指代。
现按「群+人」维护会话记忆(内存,30min TTL,留最近 12 条),整段历史喂助手。
- 没给链接:AssistantService.chat 加 systemExtra,企微渠道注入指令 ——
纯文字/Markdown(不画 render_artifact)+ 用 plan id 拼 {webBase}/plans/<id> 给 Markdown 链接
+ 多轮指代提示。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment