feat(iit): Complete CRA Agent V3.0 P1 - ChatOrchestrator with LLM Function Calling
P1 Architecture: Lightweight ReAct (Function Calling loop, max 3 rounds) Core changes: - Add ToolDefinition/ToolCall types to LLM adapters (DeepSeek + CloseAI + Claude) - Replace 6 old tools with 4 semantic tools: read_report, look_up_data, check_quality, search_knowledge - Create ChatOrchestrator (~160 lines) replacing ChatService (1,442 lines) - Wire WechatCallbackController to ChatOrchestrator, deprecate ChatService - Fix nullable content (string | null) across 12+ LLM consumer files E2E test results: 8/8 scenarios passed (100%) - QC report query, critical issues, patient data, trend, on-demand QC - Knowledge base search, project overview, data modification refusal Net code reduction: ~1,100 lines Tested: E2E P1 chat test 8/8 passed with DeepSeek API Made-with: Cursor
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
> **文档版本:** v6.2
|
||||
> **创建日期:** 2025-11-28
|
||||
> **维护者:** 开发团队
|
||||
> **最后更新:** 2026-02-24
|
||||
> **最后更新:** 2026-02-26
|
||||
> **🎉 重大里程碑:**
|
||||
> - **🆕 2026-02-26:CRA Agent V3.0 P0+P1 全部完成!** 自驱动质控流水线 + ChatOrchestrator + LLM Function Calling + E2E 54/54 通过
|
||||
> - **🆕 2026-02-24:ASL 工具 3 V2.0 架构升级至散装派发 + Aggregator!** 9 条研发红线 + 散装派发与轮询收口任务模式指南 v1.1 沉淀
|
||||
> - **2026-02-23:ASL 工具 3 V2.0 开发计划完成!** HITL + 动态模板 + M1/M2/M3 三阶段 22 天
|
||||
> - **🆕 2026-02-23:ASL Deep Research V2.0 核心功能完成!** SSE 实时流 + 段落化思考 + 瀑布流 UI + Markdown 渲染 + 引用链接可见 + Word 导出 + 中文数据源
|
||||
@@ -78,7 +79,7 @@
|
||||
| **PKB** | 个人知识库 | RAG问答、私人文献库 | ⭐⭐⭐ | 🎉 **Dify已替换!自研RAG上线(95%)** | P1 |
|
||||
| **ASL** | AI智能文献 | 文献筛选、Deep Research、全文智能提取 | ⭐⭐⭐⭐⭐ | 🎉 **V2.0 核心完成(80%)+ 🆕工具3计划v2.0就绪** - SSE流式+瀑布流UI+HITL+Word导出+散装派发+Aggregator+动态模板 | **P0** |
|
||||
| **DC** | 数据清洗整理 | ETL + 医学NER(百万行级数据) | ⭐⭐⭐⭐⭐ | ✅ **Tool B完成 + Tool C 99%(异步架构+性能优化-99%+多指标转换+7大功能)** | **P0** |
|
||||
| **IIT** | IIT Manager Agent | AI驱动IIT研究助手 - 双脑架构+REDCap集成 | ⭐⭐⭐⭐⭐ | 🎉 **事件级质控V3.1完成(设计100%,代码60%)** | **P0** |
|
||||
| **IIT** | IIT Manager Agent | CRA Agent - LLM Tool Use + 自驱动质控 + 统一驾驶舱 | ⭐⭐⭐⭐⭐ | 🎉 **V3.0 P0+P1完成!** ChatOrchestrator + 4工具 + E2E 54/54 | **P1-2** |
|
||||
| **SSA** | 智能统计分析 | **QPER架构** + 四层七工具 + 对话层LLM + 意图路由器 | ⭐⭐⭐⭐⭐ | 🎉 **Phase I-IV 开发完成** — QPER闭环 + Session黑板 + 意图路由 + 对话LLM + 方法咨询 + 对话驱动分析,E2E 107/107 | **P1** |
|
||||
| **ST** | 统计分析工具 | 100+轻量化统计工具 | ⭐⭐⭐⭐ | 📋 规划中 | P2 |
|
||||
| **RVW** | 稿件审查系统 | 方法学评估 + 🆕数据侦探(L1/L2/L2.5验证)+ Skills架构 + Word导出 | ⭐⭐⭐⭐ | 🚀 **V2.0 Week3完成(85%)** - 统计验证扩展+负号归一化+文件格式提示+用户体验优化 | P1 |
|
||||
@@ -930,16 +931,23 @@ data: [DONE]\n\n
|
||||
|
||||
---
|
||||
|
||||
### 🚀 IIT Manager Agent(代号:IIT,2025-12-31启动)
|
||||
### 🚀 IIT Manager Agent / CRA Agent(代号:IIT,2025-12-31启动)
|
||||
|
||||
**定位**:AI驱动的IIT(研究者发起的临床研究)智能助手
|
||||
**定位**:替代 CRA 岗位的自主 AI Agent(目标替代 70-80% CRA 工作量)
|
||||
|
||||
**核心价值**:
|
||||
- 🎯 **主动工作的AI Agent** - 不是被动工具,而是24/7主动监控的智能助手
|
||||
- 🎯 **替代 CRA 的自主 Agent** - 每日自动质控、生成报告、派发 eQuery、推送告警
|
||||
- 🎯 **LLM 原生 Tool Use** - ChatOrchestrator + 4 语义化工具(read_report / look_up_data / check_quality / search_knowledge)
|
||||
- 🎯 **REDCap深度集成** - 与医院现有EDC系统无缝对接
|
||||
- 🎯 **影子状态机制** - AI建议+人类确权,符合医疗合规要求(FDA 21 CFR Part 11)
|
||||
- 🎯 **统一驾驶舱** - 去角色化设计,健康分 + 风险热力图 + AI Timeline
|
||||
- 🎯 **企业微信实时通知** - 质控预警秒级推送,移动端查看
|
||||
|
||||
**V3.0 当前状态**:✅ **P0+P1 完成,E2E 54/54 通过**
|
||||
- ✅ P0:自驱动质控流水线(变量清单 + 规则配置 + 定时质控 + eQuery 闭环 + 驾驶舱)
|
||||
- ✅ P1:对话层 Tool Use 改造(ChatOrchestrator + Function Calling + 4 工具)
|
||||
- 📋 P1-2:对话体验优化(待开发)
|
||||
- 📋 P2:可选功能(不排期)
|
||||
|
||||
**MVP目标**(2周冲刺):
|
||||
- ✅ 打通 REDCap → AI质控 → 企微通知 完整闭环
|
||||
- ✅ 实现智能数据质控(基于Protocol的入排标准检查)
|
||||
|
||||
Reference in New Issue
Block a user