Spaces:
Paused
Paused
Modularised the agents 8
Browse files- __pycache__/crew.cpython-310.pyc +0 -0
- crew.py +3 -3
__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
|
@@ -104,7 +104,7 @@ class GAIACrew():
|
|
| 104 |
def agents(self) -> List[Agent]:
|
| 105 |
return [
|
| 106 |
Agent(
|
| 107 |
-
config=self.agents_config[name],
|
| 108 |
allow_delegation=("manager" in name),
|
| 109 |
llm=MANAGER_MODEL if "manager" in name else AGENT_MODEL,
|
| 110 |
max_iter=5 if "manager" in name else 2,
|
|
@@ -112,8 +112,8 @@ class GAIACrew():
|
|
| 112 |
verbose=True
|
| 113 |
)
|
| 114 |
for name in self.agents_config
|
| 115 |
-
]
|
| 116 |
-
|
| 117 |
@task
|
| 118 |
def manager_task(self) -> Task:
|
| 119 |
task = Task(
|
|
|
|
| 104 |
def agents(self) -> List[Agent]:
|
| 105 |
return [
|
| 106 |
Agent(
|
| 107 |
+
config={**self.agents_config[name], "name": name},
|
| 108 |
allow_delegation=("manager" in name),
|
| 109 |
llm=MANAGER_MODEL if "manager" in name else AGENT_MODEL,
|
| 110 |
max_iter=5 if "manager" in name else 2,
|
|
|
|
| 112 |
verbose=True
|
| 113 |
)
|
| 114 |
for name in self.agents_config
|
| 115 |
+
]
|
| 116 |
+
|
| 117 |
@task
|
| 118 |
def manager_task(self) -> Task:
|
| 119 |
task = Task(
|