ai-robot-core/spec/intent-driven-mid-platform/scope.md

48 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 意图驱动智能体中台改造 - 功能定界(仅中台侧)
## 1. 模块边界Module Scope
### 1.1 覆盖范围In Scope
- 中台会话编排:`policy_router` 决策 `agent | micro_flow | fixed | transfer`
- 中台输出协议:统一返回 `segments[] + trace`
- 中台工具编排KB/Intent/Flow/Prompt/Memory 工具调用治理
- 中台记忆融合:会话前 recall、会话后异步更新
- 中台高风险微流程:退款/投诉/隐私承诺/转人工
- 中台可观测性:模式、工具调用、降级原因、护栏触发、请求代际
### 1.2 不覆盖范围Out of Scope
- 渠道侧消息分段发送实现(队列、延迟、重试)
- 渠道侧中断管理实现(取消令牌、本地缓存)
- 前端/管理端页面改造
- 模型供应商切换与底层推理框架替换
---
## 2. 依赖盘点Dependencies
- 渠道侧Java
- 提供:用户消息、已送达历史、可选中断片段
- 消费:中台返回 `segments[] + trace`
- 元数据与知识库服务
- 提供KB 文档、intent 规则、flow 模板、prompt 模板
- 记忆服务
- 提供:用户长期记忆 recall / update 能力
---
## 3. 依赖接口清单Dependency Contracts
1. `POST /mid/dialogue/respond`(中台对渠道)
2. `POST /mid/sessions/{sessionId}/mode`(会话模式切换)
3. `POST /mid/messages/report`(全量消息上报)
4. `POST /deps/metadata/query`(中台调用元数据服务)
5. `POST /deps/memory/recall`、`POST /deps/memory/update`(中台调用记忆服务)
---
## 4. 阶段目标
- Phase 1协议统一与主链路可用
- Phase 2高风险护栏与记忆增强
- Phase 3稳定性治理与灰度回滚