Spaces:
Paused
Paused
Update crew.py
Browse files
crew.py
CHANGED
|
@@ -40,6 +40,13 @@ def get_crew():
|
|
| 40 |
tools=[final_answer_tool],
|
| 41 |
verbose=True
|
| 42 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
research = Task(
|
| 45 |
agent=research_agent,
|
|
@@ -55,7 +62,7 @@ def get_crew():
|
|
| 55 |
|
| 56 |
return Crew(
|
| 57 |
agents=[research_agent, answer_agent],
|
| 58 |
-
|
| 59 |
planning=True,
|
| 60 |
process=Process.hierarchical,
|
| 61 |
tasks=[research, answer],
|
|
|
|
| 40 |
tools=[final_answer_tool],
|
| 41 |
verbose=True
|
| 42 |
)
|
| 43 |
+
|
| 44 |
+
manager_agent = Agent(
|
| 45 |
+
role="Project Manager",
|
| 46 |
+
goal="Efficiently manage the crew and ensure high-quality task completion.",
|
| 47 |
+
backstory="You're an experienced project manager, skilled in overseeing complex projects and guiding teams to success.",
|
| 48 |
+
allow_delegation=True
|
| 49 |
+
)
|
| 50 |
|
| 51 |
research = Task(
|
| 52 |
agent=research_agent,
|
|
|
|
| 62 |
|
| 63 |
return Crew(
|
| 64 |
agents=[research_agent, answer_agent],
|
| 65 |
+
manager_agent=manager_agent,
|
| 66 |
planning=True,
|
| 67 |
process=Process.hierarchical,
|
| 68 |
tasks=[research, answer],
|