Psiska commited on
Commit
f1f1927
·
1 Parent(s): 7432811

Modularised the agents 2

Browse files
Files changed (2) hide show
  1. __pycache__/crew.cpython-310.pyc +0 -0
  2. 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
- return Task(
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: