Skip to content

feat(tools): add LegionControl tool for multi-agent legion orchestration - #5

Closed
1688mengdie wants to merge 1 commit into
mainfrom
pr/legion-control-tool
Closed

feat(tools): add LegionControl tool for multi-agent legion orchestration#5
1688mengdie wants to merge 1 commit into
mainfrom
pr/legion-control-tool

Conversation

@1688mengdie

Copy link
Copy Markdown
Owner

概述

新增 LegionControl 工具,用于多智能体 Legion 编排。

功能

  • 从 /legions/.json 加载 Legion JSON 模板
  • 按边拓扑排序节点
  • 通过 SessionControl 创建 Agent 会话
  • 失败时支持回滚
  • 可选地向第一层节点发送初始任务消息

变更

  • 新增 legion_control_tool.rs(568行)
  • mod.rs 中添加模块声明和重导出

验证

  • cargo check -p bitfun-core 通过

AI-assisted, build verified.

References GCWing#1674

@wsp1911 PTAL

Load legion JSON templates from <user-config>/legions/<id>.json,
topologically sort nodes by edges, create agent sessions via
SessionControl, support rollback on failure, and optionally send
initial task messages to first-layer nodes.

AI-assisted, build verified.

References GCWing#1674
@1688mengdie
1688mengdie force-pushed the pr/legion-control-tool branch from 550aa91 to fa67f1e Compare July 22, 2026 20:05
@1688mengdie
1688mengdie deleted the pr/legion-control-tool branch July 24, 2026 12:14
1688mengdie added a commit that referenced this pull request Aug 5, 2026
仅新增 docs/features/agent-hot-reload.md:文档化 agents/*.md 加载机制(无缓存全量重读 + 进程级 ensure 标志)、各字段生效时机、AgentListing 快照刷新触发条件与已知限制,全部结论附源码实测文件:行号。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant