Loading...
Loading...
Compare original and translation side by side
.yaml运行 workflows/story-creation.yamlagency-agents-zh.yamlagency-agents-zhname: "工作流名称"
agents_dir: "agency-agents-zh" # 角色定义目录
inputs: # 输入变量
- name: xxx
required: true/false
default: "默认值"
steps: # 执行步骤
- id: step_id
role: "category/agent-name" # 角色路径
task: "任务描述 {{变量}}" # 支持模板变量
output: variable_name # 输出变量名
depends_on: [other_step_id] # 依赖关系llmconcurrencytimeoutretrytest -d{agents_dir}/./agency-agents-zh/../{agents_dir}/{agents_dir}/node_modules/agency-agents-zh/找不到角色目录。请先安装:
git clone --depth 1 https://github.com/jnMetaCode/agency-agents-zh.git
或:npm install agency-agents-zhname: "Workflow Name"
agents_dir: "agency-agents-zh" # Role definition directory
inputs: # Input variables
- name: xxx
required: true/false
default: "Default Value"
steps: # Execution steps
- id: step_id
role: "category/agent-name" # Role path
task: "Task description {{variable}}" # Supports template variables
output: variable_name # Output variable name
depends_on: [other_step_id] # Dependenciesllmconcurrencytimeoutretrytest -d{agents_dir}/./agency-agents-zh/../{agents_dir}/{agents_dir}/node_modules/agency-agents-zh/Role directory not found. Please install first:
git clone --depth 1 https://github.com/jnMetaCode/agency-agents-zh.git
Or: npm install agency-agents-zhrequired: truedefaultrequired: truedefaultdepends_on执行计划(共 N 步):
第 1 层: [step_id] — 角色名
第 2 层: [step_a, step_b] — 并行
第 3 层: [step_id] — 角色名depends_onExecution Plan (Total N steps):
Layer 1: [step_id] — Role Name
Layer 2: [step_a, step_b] — Parallel Execution
Layer 3: [step_id] — Role Name.md{角色目录}/{role}.mdname---.md{Role Directory}/{role}.mdname---{{变量名}}{{variable_name}}undefinedundefined
**多步骤层(并行)**:使用 Agent 工具为每个步骤启动子代理。每个子代理的 prompt 必须包含:
- 角色文件的**完整文本内容**(不是路径——子代理可能无法读文件)
- 渲染后的 task 文本
- 指令:"以上是你的角色定义,请以该角色身份完成以下任务,直接输出结果"
**Multi-step layer (parallel)**: Use the Agent tool to start a sub-agent for each step. The prompt for each sub-agent must include:
- **Full text content of the role file** (not the path — sub-agents may not be able to read files)
- Rendered task text
- Instruction: "The above is your role definition. Please complete the following task as this role and output the result directly"output{{变量}}output{{variable}}.ao-output/{工作流名称}-{YYYY-MM-DD}/
├── steps/
│ ├── 1-{step_id}.md # 每步的输出
│ ├── 2-{step_id}.md
│ └── ...
├── summary.md # 最后一步的完整输出(最终成果)
└── metadata.json # 基本元数据{
"name": "工作流名称",
"date": "2026-03-22",
"success": true,
"steps": [
{"id": "step_id", "role": "category/agent", "status": "completed"},
...
]
}.ao-output/{Workflow Name}-{YYYY-MM-DD}/
├── steps/
│ ├── 1-{step_id}.md # Output of each step
│ ├── 2-{step_id}.md
│ └── ...
├── summary.md # Complete output of the last step (final deliverable)
└── metadata.json # Basic metadata{
"name": "Workflow Name",
"date": "2026-03-22",
"success": true,
"steps": [
{"id": "step_id", "role": "category/agent", "status": "completed"},
...
]
}ao initnpm install agency-agents-zhao initnpm install agency-agents-zh