feat: --actions-module 支持 + Agent 自动推断状态机 #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/pipeline-orchestration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
新增 -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,支持相对模块路径。