bstraehle commited on
Commit
3d55f04
·
verified ·
1 Parent(s): c6aecd3

Update config/agents.yaml

Browse files
Files changed (1) hide show
  1. config/agents.yaml +72 -118
config/agents.yaml CHANGED
@@ -1,125 +1,79 @@
1
- web_search_agent = Agent(
2
- role="Web Search Agent",
3
- goal="Given a question only, search the web and answer the question: {question}",
4
- backstory="As an expert web search assistant, you search the web to answer the question.",
5
- allow_delegation=False,
6
- llm=AGENT_MODEL,
7
- max_iter=2,
8
- tools=[web_search_tool],
9
- verbose=True
10
- )
11
 
12
- #with StagehandTool(
13
- # api_key=os.environ["BROWSERBASE_API_KEY"],
14
- # project_id=os.environ["BROWSERBASE_PROJECT_ID"],
15
- # model_api_key=os.environ["OPENAI_API_KEY"],
16
- # model_name="gpt-4.1"
17
- #) as web_browser_tool:
18
- # web_browser_agent = Agent(
19
- # role="Web Browser Agent",
20
- # goal="Given a question and URL, load the URL and act, extract, navigate, observe, and answer the question: {question}",
21
- # backstory="As an expert browser assistant, you load the URL and act, extract, navigate, observe to answer the question.",
22
- # allow_delegation=False,
23
- # llm=AGENT_MODEL,
24
- # max_iter=2,
25
- # tools=[web_browser_tool],
26
- # verbose=True
27
- # )
28
-
29
- image_analysis_agent = Agent(
30
- role="Image Analysis Agent",
31
- goal="Given a question and image file, analyze the image and answer the question: {question}",
32
- backstory="As an expert image analysis assistant, you analyze the image to answer the question.",
33
- allow_delegation=False,
34
- llm=AGENT_MODEL,
35
- max_iter=2,
36
- tools=[image_analysis_tool],
37
- verbose=True
38
- )
39
 
40
- audio_analysis_agent = Agent(
41
- role="Audio Analysis Agent",
42
- goal="Given a question and audio file, analyze the audio and answer the question: {question}",
43
- backstory="As an expert audio analysis assistant, you analyze the audio to answer the question.",
44
- allow_delegation=False,
45
- llm=AGENT_MODEL,
46
- max_iter=2,
47
- tools=[audio_analysis_tool],
48
- verbose=True
49
- )
50
 
51
- video_analysis_agent = Agent(
52
- role="Video Analysis Agent",
53
- goal="Given a question and video file, analyze the video and answer the question: {question}",
54
- backstory="As an expert video analysis assistant, you analyze the video file to answer the question.",
55
- allow_delegation=False,
56
- llm=AGENT_MODEL,
57
- max_iter=2,
58
- tools=[video_analysis_tool],
59
- verbose=True
60
- )
61
-
62
- youtube_analysis_agent = Agent(
63
- role="YouTube Analysis Agent",
64
- goal="Given a question and YouTube URL, analyze the video and answer the question: {question}",
65
- backstory="As an expert YouTube analysis assistant, you analyze the video to answer the question.",
66
- allow_delegation=False,
67
- llm=AGENT_MODEL,
68
- max_iter=2,
69
- tools=[youtube_analysis_tool],
70
- verbose=True
71
- )
72
 
73
- document_analysis_agent = Agent(
74
- role="Document Analysis Agent",
75
- goal="Given a question and document file, analyze the document and answer the question: {question}",
76
- backstory="As an expert document analysis assistant, you analyze the document to answer the question.",
77
- allow_delegation=False,
78
- llm=AGENT_MODEL,
79
- max_iter=2,
80
- tools=[document_analysis_tool],
81
- verbose=True
82
- )
83
 
84
- arithmetic_agent = Agent(
85
- role="Arithmetic Agent",
86
- goal="Given a question and two numbers, perform the calculation and answer the question: {question}",
87
- backstory="As an expert arithmetic assistant, you perform the calculation to answer the question.",
88
- allow_delegation=False,
89
- llm=AGENT_MODEL,
90
- max_iter=2,
91
- tools=[arithmetic_tool],
92
- verbose=True
93
- )
94
-
95
- code_execution_agent = Agent(
96
- role="Code Execution Agent",
97
- goal="Given a question and Python file, execute the file to answer the question: {question}",
98
- backstory="As an expert Python code execution assistant, you execute code to answer the question.",
99
- allow_delegation=False,
100
- llm=AGENT_MODEL,
101
- max_iter=3,
102
- tools=[code_execution_tool],
103
- verbose=True
104
- )
 
 
105
 
106
- code_generation_agent = Agent(
107
- role="Code Generation Agent",
108
- goal="Given a question and JSON data, generate and execute code to answer the question: {question}",
109
- backstory="As an expert Python code generation assistant, you generate and execute code to answer the question.",
110
- allow_delegation=False,
111
- llm=AGENT_MODEL,
112
- max_iter=3,
113
- tools=[code_generation_tool],
114
- verbose=True
115
- )
116
 
117
- manager_agent = Agent(
118
- role="Manager Agent",
119
- goal="Answer the following question. If needed, delegate to one of your coworkers. Question: {question}",
120
- backstory="As an expert manager assistant, you answer the question.",
121
- allow_delegation=True,
122
- llm=MANAGER_MODEL,
123
- max_iter=5,
124
- verbose=True
125
- )
 
1
+ web_search_agent:
2
+ role: >
3
+ Web Search Agent
4
+ goal: >
5
+ Given a question only, search the web and answer the question: {question}
6
+ backstory: >
7
+ As an expert web search assistant, you search the web to answer the question.
 
 
 
8
 
9
+ image_analysis_agent:
10
+ role: >
11
+ Image Analysis Agent
12
+ goal: >
13
+ Given a question and image file, analyze the image and answer the question: {question}
14
+ backstory: >
15
+ As an expert image analysis assistant, you analyze the image to answer the question.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
+ audio_analysis_agent:
18
+ role: >
19
+ Audio Analysis Agent
20
+ goal: >
21
+ Given a question and audio file, analyze the audio and answer the question: {question}
22
+ backstory: >
23
+ As an expert audio analysis assistant, you analyze the audio to answer the question.
 
 
 
24
 
25
+ video_analysis_agent:
26
+ role: >
27
+ Video Analysis Agent
28
+ goal: >
29
+ Given a question and video file, analyze the video and answer the question: {question}
30
+ backstory: >
31
+ As an expert video analysis assistant, you analyze the video file to answer the question.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
+ youtube_analysis_agent:
34
+ role: >
35
+ YouTube Analysis Agent
36
+ goal: >
37
+ Given a question and YouTube URL, analyze the video and answer the question: {question}
38
+ backstory: >
39
+ As an expert YouTube analysis assistant, you analyze the video to answer the question.
 
 
 
40
 
41
+ document_analysis_agent:
42
+ role: >
43
+ Document Analysis Agent
44
+ goal: >
45
+ Given a question and document file, analyze the document and answer the question: {question}
46
+ backstory: >
47
+ As an expert document analysis assistant, you analyze the document to answer the question.
48
+
49
+ arithmetic_agent:
50
+ role: >
51
+ Arithmetic Agent
52
+ goal: >
53
+ Given a question and two numbers, perform the calculation and answer the question: {question}
54
+ backstory: >
55
+ As an expert arithmetic assistant, you perform the calculation to answer the question.
56
+
57
+ code_execution_agent:
58
+ role: >
59
+ Code Execution Agent
60
+ goal: >
61
+ Given a question and Python file, execute the file to answer the question: {question}
62
+ backstory: >
63
+ As an expert Python code execution assistant, you execute code to answer the question.
64
 
65
+ code_generation_agent:
66
+ role: >
67
+ Code Generation Agent
68
+ goal: >
69
+ Given a question and JSON data, generate and execute code to answer the question: {question}
70
+ backstory: >
71
+ As an expert Python code generation assistant, you generate and execute code to answer the question.
 
 
 
72
 
73
+ manager_agent:
74
+ role: >
75
+ Manager Agent
76
+ goal: >
77
+ Answer the following question. If needed, delegate to one of your coworkers. Question: {question}
78
+ backstory: >
79
+ As an expert manager assistant, you answer the question.