ordering tasks properly

This commit is contained in:
João Moura
2024-09-26 21:40:23 -03:00
parent 39d4773b3a
commit 30979e646d

View File

@@ -45,7 +45,7 @@ def CrewBase(cls: T) -> T:
]
tasks = [
getattr(self, name)()
for name, func in self._get_all_functions().items()
for name, func in reversed(self._get_all_functions().items())
if hasattr(func, "is_task")
]
return Crew(agents=agents, tasks=tasks)