bstraehle commited on
Commit
d5e4d40
·
verified ·
1 Parent(s): 08c9d9b

Update config/agents.yaml

Browse files
Files changed (1) hide show
  1. config/agents.yaml +125 -1
config/agents.yaml CHANGED
@@ -1 +1,125 @@
1
- x
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ )