- capabilities/{manifests,registry,providers,install_manager}.py + tool_runner.py:
三层机制(注册层/调用层/安装管理层),四 Provider,热加载差分刷新
- configs/capabilities.yaml: 唯一注册入口(明文热加载面)
- api.py: QARequest+history/capabilities, /capabilities/install loopback 路由
- llm_client.py: complete() tools 透传 + complete_raw_messages() 工具调用循环支持
- pipeline.py/answer_composer.py: history 线程化(只进 Dialogue Context,检索零回归)
- sdk: services/history.py(3轮/16k预算) + routers/qa.py session_id 剥离注入
- compile_qa.sh: rsync 允许子目录 + capabilities.yaml 入 install 清单
- tooling/cap/: fake_mcp_server.py + cap_selfcheck.py 机制自检
- requirements.lock: mcp 2.1.1 + 依赖 12 包
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
agent/ —— 底层服务三件套
| 目录 | 服务 | 端口 | 入口(白名单明文) | conda |
|---|---|---|---|---|
| qa/ | QA V1.1.73 断言锚定检索 | 8091 | scripts/qa_v1_1_73_server.py | plantai-rag-new-venv |
| methodology/ | Methodology 提取 | 8092 | scripts/methodology_server.py | plantai-rag-new-venv |
| legacy-rag/ | 旧路由族(app 3 路由/main 11 族) | 8093 | api/app.py | plantai-rag-new-venv |
| vendor/ | 共享源码池(非服务) | — | — | — |
约束:仅 shell 启动(scripts/{start,stop,status,restart}.sh);编译产物 .so 隐藏源码;compile.manifest 记录模块级白名单。vendor 为源码单份,编译时复制进各 agent 暂存目录。