Repository navigation
Expand file tree
/
Copy pathagents.yaml
More file actions
80 lines (71 loc) · 2.64 KB
/
Copy pathagents.yaml
File metadata and controls
80 lines (71 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Bailian Managed multi-agent example: a coordinator that delegates to
# researcher, writer, and an existing external reviewer. Locally declared
# agents materialize as Managed Agents. Replace `agent_external_reviewer` with
# an Agent id accessible to your Bailian workspace before applying this example.
#
# Bailian runs child agents in PARALLEL over a SHARED file system: files
# written by one member are visible to the others. The coordinator's
# instructions should declare file ownership to avoid two members writing
# the same path.
#
# Phase 1 rules enforced at plan time:
# - logical-name members must be declared in this file; external ids are non-owned
# - no self reference, no nesting, no direct or indirect cycles
# - at most 20 members per coordinator
version: "1"
providers:
bailian:
api_key: ${DASHSCOPE_API_KEY}
workspace_id: ${BAILIAN_WORKSPACE_ID}
defaults:
provider: bailian
environments:
dev:
config:
type: cloud
networking:
type: unrestricted
agents:
researcher:
description: "Gathers information from the codebase"
model: qwen3.7-max
instructions: |
You are a research agent. Your job is to gather relevant information
from the codebase when asked. Use glob and grep to find files, then
read them to extract the needed context.
Only write files under /work/research/. Never touch /work/report/.
environment: dev
tools:
builtin: [read, glob, grep, web_search]
writer:
description: "Writes documentation and summaries"
model: qwen3.7-max
instructions: |
You are a technical writer. Given research findings, produce clear
and concise documentation, summaries, or reports.
Only write files under /work/report/. Never touch /work/research/.
environment: dev
tools:
builtin: [read, glob, grep]
lead:
description: "Coordinates local agents and an external reviewer"
model: qwen3.7-max
instructions: |
You are the lead agent coordinating a team:
- researcher: can search code and the web for information,
owns /work/research/
- writer: can produce documentation from findings,
owns /work/report/
- external reviewer: can independently review the proposed result
Child agents run in parallel and share one file system, so keep each
member inside its own directory. Break tasks into research and writing
phases, delegate, then synthesize their outputs into /work/report/.
environment: dev
tools:
builtin: [read, glob, grep]
multiagent:
type: coordinator
agents:
- researcher
- writer
- agent_id: agent_external_reviewer