docs(roadmap): 更新路线图至 Phase 1 完成状态

This commit is contained in:
徐涛
2026-06-03 09:00:44 +08:00
parent 993ae0eb4b
commit dd9c5be1fe
+31 -29
View File
@@ -1,13 +1,13 @@
# AG Core Roadmap
> 定稿日期:2026-05-11
> 最后更新:2026-06-02
> 最后更新:2026-06-02Phase 1 完成)
## 愿景
AG Core 定位为构建 AI 智能体的底层工具箱,通过模块化、可插拔的架构,提供大模型调用、提示词工程、工具系统、记忆检索四大核心能力,支持快速组合出符合业务需求的智能体应用。
**当前状态**:Phase 0 基础设施已全部完成,等待 Phase 1 启动。
**当前状态**Phase 0 基础设施已全部完成,Phase 1 提示词工程已全部完成,等待 Phase 2 启动。
---
@@ -16,7 +16,7 @@ AG Core 定位为构建 AI 智能体的底层工具箱,通过模块化、可
| 功能领域 | 方案状态 | 文档位置 | 实现优先级 |
|---------|---------|---------|-----------|
| LLM 调用周期 | ✅ 完整 | `specs/llm-call-lifecycle.md` | P0 |
| 提示词工程 | ❌ 缺失 | — | P1 |
| 提示词工程 | ✅ 完整 | `docs/4-prompt-engineering.md` | P1 |
| 工具系统 + 权限 | ❌ 缺失 | — | P1 |
| 记忆检索 | ❌ 缺失 | — | P2 |
| Agent 运行时 | ❌ 缺失 | — | P2 |
@@ -58,10 +58,10 @@ AG Core 定位为构建 AI 智能体的底层工具箱,通过模块化、可
**目标**:提供提示词的组合、模板化与优化能力。
**交付物**
1. `prompt.rs` + `prompt/` 模块
2. `PromptTemplate` — 模板引擎(支持变量插值、条件渲染)
3. `PromptComposer` — 提示词组合器(拼接 system/user/assistant 消息)
4. `specs/prompt-design.md` — 方案文档
1. `prompt.rs` + `prompt/` 模块
2. `PromptTemplate` — 模板引擎(支持变量插值、条件渲染)
3. `PromptComposer` — 提示词组合器(拼接 system/user/assistant 消息)
4. `docs/4-prompt-engineering.md` — 方案文档
**依赖**:无(可与 Phase 0 并行)
@@ -69,6 +69,8 @@ AG Core 定位为构建 AI 智能体的底层工具箱,通过模块化、可
**预估规模**:约 400 行代码
**状态**:✅ Phase 1 全部交付物已完成
---
### Phase 2 — Tool System(工具系统)
@@ -133,25 +135,24 @@ AG Core 定位为构建 AI 智能体的底层工具箱,通过模块化、可
## 依赖关系图
```
Phase 4: Agent Runtime
┌─────────────────┼─────────────────┐
▼ ▼ ▼
Phase 1 Phase 2 Phase 3
Prompt Tool System Memory
Engineering + Permission System
+ HookExecutor
│ │ │
└────────┬────────┴────────┬────────┘
▼ ▼
Phase 0 ─────────────────┘
LLM Cycle
+ ProviderRegistry
+ HookExecutor
+ StreamEvents
+ Auto-compaction
(Foundation)
```mermaid
graph BT
P0["<b>Phase 0: Foundation</b><br/>LLM Cycle<br/>ProviderRegistry<br/>HookExecutor<br/>StreamEvents<br/>Auto-compaction"]:::done
P1["<b>Phase 1: Prompt Engineering</b><br/>PromptTemplate<br/>PromptComposer"]:::done
P2["<b>Phase 2: Tool System</b><br/>Tool Registry<br/>PermissionChecker<br/>MCP Client"]:::pending
P3["<b>Phase 3: Memory System</b><br/>MemoryStore<br/>VectorStore<br/>ConversationMemory"]:::pending
P4["<b>Phase 4: Agent Runtime</b><br/>ConversationAgent<br/>TaskAgent"]:::pending
P1 --> P0
P2 --> P0
P3 --> P0
P2 --> P1
P4 --> P1
P4 --> P2
P4 --> P3
classDef done fill:#4ade80,stroke:#16a34a,color:#1a1a1a
classDef pending fill:#fbbf24,stroke:#d97706,color:#1a1a1a
```
---
@@ -178,9 +179,10 @@ AG Core 定位为构建 AI 智能体的底层工具箱,通过模块化、可
## 下一步行动
1. **Phase 0 方案评审**对齐 LLM 模块设计(`specs/llm-call-lifecycle.md` 已在 2026-05-11 更新
2. **Phase 1 方案启动**:启动 `specs/prompt-design.md` 设计
3. **Phase 2 方案启动**:启动 `specs/tool-call-loop.md` 设计(含 PermissionChecker
1. **Phase 2 方案启动**启动 `docs/5-tool-call-loop.md` 设计(含 PermissionChecker
2. **Phase 3 方案启动**:启动 `docs/6-memory-system.md` 设计
3. **依赖就绪**Phase 1 已交付,Phase 2 依赖的提示词能力已就位
**已完成阶段**
- ✅ Phase 0 Foundation — 全部交付物已完成
- ✅ Phase 1 Prompt Engineering — 全部交付物已完成