feat: --actions-module 支持 + Agent 自动推断状态机 #12

Merged
shaotao merged 2 commits from feat/pipeline-orchestration into main 2026-06-12 13:49:12 +08:00
Owner

新增 -m/--actions-module 参数,Agent 支持 actions 简写 true 从模块按名查找。
Agent 从 capabilities 自动推断状态机。
自动将 pipeline 目录加入 sys.path。

后续 PR #11 合并后 bixiweave run 完整能力:
bixiweave run pipeline.json -a agents/ -m my_actions -s polling -c '{}'

新增 -m/--actions-module 参数,Agent 支持 actions 简写 true 从模块按名查找。 Agent 从 capabilities 自动推断状态机。 自动将 pipeline 目录加入 sys.path。 后续 PR #11 合并后 bixiweave run 完整能力: bixiweave run pipeline.json -a agents/ -m my_actions -s polling -c '{}'
Agent 的 actions 参数现在支持三种形式:
  1. callable 函数(向后兼容)
  2. 点分路径字符串:'my_actions.write_draft'
  3. 纯函数名 + --actions-module 组合

_bixiweave run_ 新增 --actions-module / -m 参数:
  bixiweave run pipeline.json --agents agents/ -m my_actions

Agent JSON 定义中的 actions 可简写为函数名列表:
  {"actions": {"write_draft": true}}  → 从模块自动查找同名函数
bixiweave run 新增 -m/--actions-module:
  bixiweave run pipeline.json -m my_actions
  bixiweave run pipeline.json --agents agents/ -m my_actions

Agent JSON 支持 actions 简写:
  {"actions": {"say_hello": true}} → 从模块按同名查找

Agent 从 DSL 的 capabilities 自动推断状态机:
  只有 role 没有 sm_def 时自动生成 idle→working→done 流程

自动将 pipeline 目录加入 sys.path,支持相对模块路径。
shaotao deleted branch feat/pipeline-orchestration 2026-06-12 13:49:17 +08:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bixiu/bixiweave!12
No description provided.