bstraehle commited on
Commit
7447d1b
·
verified ·
1 Parent(s): 10a7345

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +9 -9
crew.py CHANGED
@@ -244,7 +244,7 @@ def run_crew(question, file_path):
244
 
245
  web_search_agent = Agent(
246
  role="Web Search Agent",
247
- goal="Search the web to help answer question \"{question}\"",
248
  backstory="As an expert web search assistant, you search the web to help answer the question.",
249
  allow_delegation=False,
250
  llm=AGENT_MODEL,
@@ -255,7 +255,7 @@ def run_crew(question, file_path):
255
 
256
  image_analysis_agent = Agent(
257
  role="Image Analysis Agent",
258
- goal="Analyze image file to help answer question \"{question}\"",
259
  backstory="As an expert image analysis assistant, you analyze the image file to help answer the question.",
260
  allow_delegation=False,
261
  llm=AGENT_MODEL,
@@ -266,7 +266,7 @@ def run_crew(question, file_path):
266
 
267
  audio_analysis_agent = Agent(
268
  role="Audio Analysis Agent",
269
- goal="Analyze audio file to help answer question \"{question}\"",
270
  backstory="As an expert audio analysis assistant, you analyze the audio file to help answer the question.",
271
  allow_delegation=False,
272
  llm=AGENT_MODEL,
@@ -277,7 +277,7 @@ def run_crew(question, file_path):
277
 
278
  video_analysis_agent = Agent(
279
  role="Video Analysis Agent",
280
- goal="Analyze video file to help answer question \"{question}\"",
281
  backstory="As an expert video analysis assistant, you analyze the video file to help answer the question.",
282
  allow_delegation=False,
283
  llm=AGENT_MODEL,
@@ -288,7 +288,7 @@ def run_crew(question, file_path):
288
 
289
  youtube_analysis_agent = Agent(
290
  role="YouTube Analysis Agent",
291
- goal="Analyze YouTube video to help answer question \"{question}\"",
292
  backstory="As an expert YouTube analysis assistant, you analyze the video to help answer the question.",
293
  allow_delegation=False,
294
  llm=AGENT_MODEL,
@@ -299,7 +299,7 @@ def run_crew(question, file_path):
299
 
300
  code_generation_agent = Agent(
301
  role="Code Generation Agent",
302
- goal="Given a question, generate code to help answer the question: \"{question}\"",
303
  backstory="As an expert Python code generation assistant, you generate code to help answer the question.",
304
  allow_delegation=False,
305
  llm=AGENT_MODEL,
@@ -310,7 +310,7 @@ def run_crew(question, file_path):
310
 
311
  code_execution_agent = Agent(
312
  role="Code Execution Agent",
313
- goal="Given a question and .py Python file, execute the file to help answer the question: \"{question}\"",
314
  backstory="As an expert Python code execution assistant, you execute the code file to help answer the question.",
315
  allow_delegation=False,
316
  llm=AGENT_MODEL,
@@ -323,7 +323,7 @@ def run_crew(question, file_path):
323
  role="Manager Agent",
324
  goal="Try to answer the following question. If needed, delegate to one or more of your coworkers for help. "
325
  "If there is no good coworker, delegate to the Python Coding Agent to implement a tool for the task. "
326
- "Question: \"{question}\"",
327
  backstory="As an expert manager assistant, you answer the question.",
328
  allow_delegation=True,
329
  llm=MANAGER_MODEL,
@@ -335,7 +335,7 @@ def run_crew(question, file_path):
335
 
336
  manager_task = Task(
337
  agent=manager_agent,
338
- description="Try to answer the following question. If needed, delegate to one or more of your coworkers for help. Question: \"{question}\"",
339
  expected_output="The answer to the question."
340
  )
341
 
 
244
 
245
  web_search_agent = Agent(
246
  role="Web Search Agent",
247
+ goal="Search the web to help answer the question: {question}",
248
  backstory="As an expert web search assistant, you search the web to help answer the question.",
249
  allow_delegation=False,
250
  llm=AGENT_MODEL,
 
255
 
256
  image_analysis_agent = Agent(
257
  role="Image Analysis Agent",
258
+ goal="Analyze image file to help answer the question: {question}",
259
  backstory="As an expert image analysis assistant, you analyze the image file to help answer the question.",
260
  allow_delegation=False,
261
  llm=AGENT_MODEL,
 
266
 
267
  audio_analysis_agent = Agent(
268
  role="Audio Analysis Agent",
269
+ goal="Analyze audio file to help answer the question: {question}",
270
  backstory="As an expert audio analysis assistant, you analyze the audio file to help answer the question.",
271
  allow_delegation=False,
272
  llm=AGENT_MODEL,
 
277
 
278
  video_analysis_agent = Agent(
279
  role="Video Analysis Agent",
280
+ goal="Analyze video file to help answer the question: {question}",
281
  backstory="As an expert video analysis assistant, you analyze the video file to help answer the question.",
282
  allow_delegation=False,
283
  llm=AGENT_MODEL,
 
288
 
289
  youtube_analysis_agent = Agent(
290
  role="YouTube Analysis Agent",
291
+ goal="Analyze YouTube video to help answer the question: {question}",
292
  backstory="As an expert YouTube analysis assistant, you analyze the video to help answer the question.",
293
  allow_delegation=False,
294
  llm=AGENT_MODEL,
 
299
 
300
  code_generation_agent = Agent(
301
  role="Code Generation Agent",
302
+ goal="Given a question, generate code to help answer the question: {question}",
303
  backstory="As an expert Python code generation assistant, you generate code to help answer the question.",
304
  allow_delegation=False,
305
  llm=AGENT_MODEL,
 
310
 
311
  code_execution_agent = Agent(
312
  role="Code Execution Agent",
313
+ goal="Given a question and .py Python file, execute the file to help answer the question: {question}",
314
  backstory="As an expert Python code execution assistant, you execute the code file to help answer the question.",
315
  allow_delegation=False,
316
  llm=AGENT_MODEL,
 
323
  role="Manager Agent",
324
  goal="Try to answer the following question. If needed, delegate to one or more of your coworkers for help. "
325
  "If there is no good coworker, delegate to the Python Coding Agent to implement a tool for the task. "
326
+ "Question: {question}",
327
  backstory="As an expert manager assistant, you answer the question.",
328
  allow_delegation=True,
329
  llm=MANAGER_MODEL,
 
335
 
336
  manager_task = Task(
337
  agent=manager_agent,
338
+ description="Try to answer the following question. If needed, delegate to one or more of your coworkers for help. Question: {question}",
339
  expected_output="The answer to the question."
340
  )
341