From dd9c5be1fe025b6002ca7ab9f5b067049348eb0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Wed, 3 Jun 2026 09:00:44 +0800 Subject: [PATCH] =?UTF-8?q?docs(roadmap):=20=E6=9B=B4=E6=96=B0=E8=B7=AF?= =?UTF-8?q?=E7=BA=BF=E5=9B=BE=E8=87=B3=20Phase=201=20=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/roadmap.md | 62 +++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/docs/roadmap.md b/docs/roadmap.md index c7fd52f..4f38e88 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -1,13 +1,13 @@ # AG Core Roadmap > 定稿日期:2026-05-11 -> 最后更新:2026-06-02 +> 最后更新:2026-06-02(Phase 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["Phase 0: Foundation
LLM Cycle
ProviderRegistry
HookExecutor
StreamEvents
Auto-compaction"]:::done + P1["Phase 1: Prompt Engineering
PromptTemplate
PromptComposer"]:::done + P2["Phase 2: Tool System
Tool Registry
PermissionChecker
MCP Client"]:::pending + P3["Phase 3: Memory System
MemoryStore
VectorStore
ConversationMemory"]:::pending + P4["Phase 4: Agent Runtime
ConversationAgent
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 — 全部交付物已完成 \ No newline at end of file +- ✅ Phase 0 Foundation — 全部交付物已完成 +- ✅ Phase 1 Prompt Engineering — 全部交付物已完成