Spaces:
Paused
Paused
Modularised the agents 2
Browse files- __pycache__/crew.cpython-310.pyc +0 -0
- crew.py +4 -1
__pycache__/crew.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/crew.cpython-310.pyc and b/__pycache__/crew.cpython-310.pyc differ
|
|
|
crew.py
CHANGED
|
@@ -107,9 +107,12 @@ class GAIACrew():
|
|
| 107 |
|
| 108 |
@task
|
| 109 |
def manager_task(self) -> Task:
|
| 110 |
-
|
| 111 |
config=self.tasks_config["manager_task"]
|
| 112 |
)
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
@crew
|
| 115 |
def crew(self) -> Crew:
|
|
|
|
| 107 |
|
| 108 |
@task
|
| 109 |
def manager_task(self) -> Task:
|
| 110 |
+
task = Task(
|
| 111 |
config=self.tasks_config["manager_task"]
|
| 112 |
)
|
| 113 |
+
task.agent = next(agent for agent in self.agents if agent.name == "manager_agent")
|
| 114 |
+
return task
|
| 115 |
+
|
| 116 |
|
| 117 |
@crew
|
| 118 |
def crew(self) -> Crew:
|