## 背景 `prebuilt/` 中规划/推理类 agent 有 6 个、约 2500 行,存在概念重叠: | 文件 | 行数 | examples/showcases 引用 | |---|---|---| | planning_agent.go | 314 | 5 | | manus_planning_agent.go | 524 | 0 | | pev_agent.go | 366 | 3 | | pi_agent.go | 823 | 0 (#94 刚加,保留) | | tree_of_thoughts.go | 242 | 1 | | reflection_agent.go | 232 | 3 | `planning` / `manus_planning` / `pev` 三者都属于「先规划再执行」范式。 ## 建议 - **不删除能力**,而是把 plan-execute 系列统一到 `CreatePlanningAgent(opts...)`,用选项区分不同变体,收敛掉 `CreateManusAgent` 这个零引用的独立入口。 - `pi_agent` 为新加入(#94),暂保留但需补充 example。 - `tree_of_thoughts`(引用=1)确认价值后决定去留。 ## 收益 / 风险 减少 API 表面与维护成本。风险:改动公开工厂函数签名,需保留兼容路径或在 major 版本处理。
Activity
smallnest commentedon Jul 8, 2026
实现总结
CreateAgentOptions与With*helpersCreateManusAgent/CreatePEVAgentMap/CreatePEVAgent接入 options(此前 Manus 的 opts 参数是死参数)ManusConfig/PEVAgentConfig(godoc),保持可用,非零 config 字段优先于 options —— 完全非破坏性refactor(prebuilt): unify plan-execute agent option surface (smallnes…