Update crew.py
Browse files
crew.py
CHANGED
@@ -83,7 +83,7 @@ def run_crew(question, file_name):
|
|
83 |
verbose=False
|
84 |
)
|
85 |
|
86 |
-
|
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. ",
|
@@ -130,13 +130,15 @@ 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=
|
134 |
process=Process.hierarchical,
|
135 |
-
tasks=[
|
136 |
-
|
137 |
verbose=True
|
138 |
)
|
139 |
|
|
|
|
|
140 |
if file_name:
|
141 |
question = f"{question} File name: data/{file_name}."
|
142 |
|
|
|
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. ",
|
|
|
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],
|
137 |
verbose=True
|
138 |
)
|
139 |
|
140 |
+
print(crew.agents)
|
141 |
+
|
142 |
if file_name:
|
143 |
question = f"{question} File name: data/{file_name}."
|
144 |
|