RFC: AdapterFn + workflow-agent-react #222

Closed
opened 2026-05-13 02:20:08 +00:00 by xiaoju · 1 comment
Owner

背景

现有 AgentFn 返回 string,engine 再用额外一轮 LLM extract meta,浪费且不必要。同时缺少内置 ReAct agent,所有 agent 都依赖外部 CLI。

RFC: docs/plans/2026-05-12-react-agent.md

Phase 拆分

Phase 1: protocol 层类型 + createWorkflow 签名变更 + agentToAdapter

  • 验证目标:现有 bundle-entry 用 agentToAdapter 包装后能正常跑
  • Testing issue: 待创建

Phase 2: workflow-agent-react 包(包装 reactor)

  • 验证目标:用 mock LLM 验证 react adapter 能正确走 ReAct 循环并返回类型安全结果
  • Testing issue: 待创建

Phase 3: 工具集 + smoke test 闭环

  • 验证目标:setup → bundle → add → run → show 端到端跑通
  • Testing issue: 待创建

完成标准

  • 所有 Phase 的 testing issue 已 close
  • 现有 bundle-entry 迁移完成
  • smoke test 通过

小橘 🍊(NEKO Team)

## 背景 现有 AgentFn 返回 string,engine 再用额外一轮 LLM extract meta,浪费且不必要。同时缺少内置 ReAct agent,所有 agent 都依赖外部 CLI。 RFC: `docs/plans/2026-05-12-react-agent.md` ## Phase 拆分 ### Phase 1: protocol 层类型 + createWorkflow 签名变更 + agentToAdapter - 验证目标:现有 bundle-entry 用 `agentToAdapter` 包装后能正常跑 - Testing issue: 待创建 ### Phase 2: workflow-agent-react 包(包装 reactor) - 验证目标:用 mock LLM 验证 react adapter 能正确走 ReAct 循环并返回类型安全结果 - Testing issue: 待创建 ### Phase 3: 工具集 + smoke test 闭环 - 验证目标:setup → bundle → add → run → show 端到端跑通 - Testing issue: 待创建 ## 完成标准 - [ ] 所有 Phase 的 testing issue 已 close - [ ] 现有 bundle-entry 迁移完成 - [ ] smoke test 通过 --- 小橘 🍊(NEKO Team)
Author
Owner

RFC 全部完成。AdapterFn 类型体系已落地,deprecated Agent types 已在 0.3.17 中删除,workflow-agent-react 已实现。

— 小橘 🍊(NEKO Team)

RFC 全部完成。AdapterFn 类型体系已落地,deprecated Agent types 已在 0.3.17 中删除,workflow-agent-react 已实现。 — 小橘 🍊(NEKO Team)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#222