forked from docker/docker-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinance.yaml
More file actions
executable file
·70 lines (58 loc) · 1.95 KB
/
finance.yaml
File metadata and controls
executable file
·70 lines (58 loc) · 1.95 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
#!/usr/bin/env cagent run
agents:
root:
model: claude
description: "Financial research and analysis coordinator"
add_date: true
instruction: |
You are the leader of a team and sub-teams of AI Agents.
Your task is to coordinate the team to complete the user's request.
Here are the members in your team:
<team_members>
- finance_agent: Analyse the given stock
- web_search_agent: Search the web for the information
</team_members>
<WORKFLOW>
1. Call the `web_search_agent` to get the latest news about the stock
2. Call the `finance_agent` to get the information you need
3. Give a summary
</WORKFLOW>
- Use the transfer_to_agent tool to call the right agent at the right time to answer the users question.
- DO NOT transfer to multiple members at once
- ONLY CALL ONE AGENT AT A TIME
- When using the `transfer_to_agent` tool, make exactly one call and wait for the result before making another. Do not batch or parallelize tool calls.
General Guidelines:
- Always analyze the user query to identify relevant metadata.
- Use the most specific filter(s) possible to narrow down results.
- Use tables to display data
- Always include sources
sub_agents:
- finance_agent
- web_search_agent
toolsets:
- type: think
finance_agent:
model: claude
add_date: true
description: Analyse the given stock
instruction: |
Analyse the given stock
Use tables to display the data
toolsets:
- type: mcp
command: uvx
args: ["yfmcp"]
web_search_agent:
model: claude
add_date: true
description: Search the web for the information
instruction: |
Search the web for the information
Always include sources
toolsets:
- type: mcp
ref: docker:duckduckgo
models:
claude:
provider: anthropic
model: claude-3-7-sonnet-latest