bstraehle commited on
Commit
a412583
·
verified ·
1 Parent(s): c89a489

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +5 -4
crew.py CHANGED
@@ -83,9 +83,10 @@ def run_crew(question, file_name):
83
  verbose=False
84
  )
85
 
86
- manager_agent2 = Agent(
87
  role="manager_agent",
88
- goal="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, video_analysis_agent, or web_search_agent for help. Question: \"{topic}\" ",
 
89
  backstory="As an expert manager assistant, you answer the question. ",
90
  allow_delegation=True,
91
  llm=MANAGER_MODEL,
@@ -120,7 +121,7 @@ def run_crew(question, file_name):
120
  )
121
 
122
  manager_task = Task(
123
- agent=manager_agent2,
124
  description="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, video_analysis_agent, or web_search_agent for help. Question: \"{topic}\" ",
125
  expected_output="The answer to the question. "
126
  )
@@ -130,7 +131,7 @@ def run_crew(question, file_name):
130
  crew = Crew(
131
  agents=[image_analysis_agent, python_coding_agent, video_analysis_agent, web_search_agent],
132
  #planning=True,
133
- manager_agent=manager_agent2,
134
  process=Process.hierarchical,
135
  #tasks=[image_analysis_task, python_coding_task, web_search_task, video_analysis_task],
136
  tasks=[manager_task],
 
83
  verbose=False
84
  )
85
 
86
+ manager_agent = Agent(
87
  role="manager_agent",
88
+ #goal="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, video_analysis_agent, or web_search_agent for help. Question: \"{topic}\" ",
89
+ goal="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, video_analysis_agent, or web_search_agent for help. ",
90
  backstory="As an expert manager assistant, you answer the question. ",
91
  allow_delegation=True,
92
  llm=MANAGER_MODEL,
 
121
  )
122
 
123
  manager_task = Task(
124
+ agent=manager_agent,
125
  description="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, video_analysis_agent, or web_search_agent for help. Question: \"{topic}\" ",
126
  expected_output="The answer to the question. "
127
  )
 
131
  crew = Crew(
132
  agents=[image_analysis_agent, python_coding_agent, video_analysis_agent, web_search_agent],
133
  #planning=True,
134
+ manager_agent=manager_agent,
135
  process=Process.hierarchical,
136
  #tasks=[image_analysis_task, python_coding_task, web_search_task, video_analysis_task],
137
  tasks=[manager_task],