SuperAPI AI 工具集

conductor

智能体与模型

查看项目

更新于 10-16 00:31

技能介绍

Conductor 是用于定义与运行多智能体工作流的 CLI 工具,底层可对接 GitHub Copilot SDK、Anthropic Claude、Claude Agent SDK 或 Hermes(NousResearch,实验性)。默认行为是运行、校验或调试已有工作流,只有在用户明确要求时才创建新的工作流文件。

主要能力:通过 YAML 描述智能体、入口点(entry_point)、路由(routes,$end 结束、self 循环)、输出与输入;支持 type: script(shell 步骤,捕获 stdout、stderr、exit_code,JSON stdout 自动合并)、type: set(纯上下文步伐,评估 Jinja2 表达式,绑定类型化值,无 LLM 无子进程)、type: wait(asyncio.sleep 暂停,时长支持 Ns/Nm/Nh/Nms 或 Jinja2,可配合路由回环轮询)、type: workflow(子工作流,支持 input_mapping、max_depth)、type: terminate(显式终止步骤,带状态与输出模板);parallel 静态并行组、for_each 动态并行组、human_gate 人工决策暂停、dialog 多轮对话、retry 重试策略。还支持 metadata、instructions 与 !file 引入、context.mode(accumulate、last_only、explicit)、limits(max_iterations 上限 500、timeout_seconds)、per-agent timeout_seconds、cost 成本跟踪、runtime 提供方与模型配置、MCP 服务器。

使用方式:conductor run workflow.yaml --input question="Hello" 执行;-q 安静模式、-s 只输出 JSON,均为根级选项,需置于子命令之前;--log-file auto 记录调试输出;--web 启动实时面板,--web-bg 后台运行;-m 附加元数据;--workspace-instructions 自动发现 AGENTS.md、CLAUDE.md 等。另有 conductor validate、show、replay、registry add/list、stop、update、resume、checkpoint list。失败时自动保存检查点,可用 conductor resume 续跑;registry 支持 name@registry@version 与 workflow#ref。

适用场景:以 YAML 编排多智能体流程、按需调试与校验工作流、需要人工审核节点或并行/循环路由的自动化任务。

限制:出错时不要自行绕过,必须向用户报告完整错误并等待指示,不可用单智能体方式模拟替代多智能体编排。Conductor 在需要时自动安装;若提示 command not found 需安装,安装说明见 references/setup.md。创建或修改工作流参见 references/authoring.md,运行与调试参见 references/execution.md,完整 YAML 模式参见 references/yaml-schema.md。具体定价、平台支持与效果等资料暂未提供。