-
Notifications
You must be signed in to change notification settings - Fork 385
Expand file tree
/
Copy pathsub-agents-from-catalog.yaml
More file actions
34 lines (29 loc) · 1.17 KB
/
sub-agents-from-catalog.yaml
File metadata and controls
34 lines (29 loc) · 1.17 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
# This example demonstrates using agents from the catalog as sub-agents.
# Sub-agents can be defined locally in the same config, or referenced from
# external sources such as OCI registries (e.g., the Docker agent catalog).
#
# External sub-agents are automatically named after their last path segment
# (e.g., "agentcatalog/pirate" becomes "pirate"). You can also give them
# an explicit name using the "name:reference" syntax:
# - reviewer:agentcatalog/review-pr
models:
model:
provider: openai
model: gpt-4o
agents:
root:
model: model
description: Coordinator that delegates to local and catalog sub-agents
instruction: |
You are a coordinator agent. You have access to both local and external sub-agents.
- Use the "local_helper" agent for simple tasks.
- Use the "pirate" agent when users want responses in a pirate style.
Delegate tasks to the most appropriate sub-agent based on the user's request.
sub_agents:
- local_helper
- agentcatalog/pirate
local_helper:
model: model
description: A local helper agent for simple tasks
instruction: |
You are a helpful assistant that answers questions concisely.