fix: swapped the task callback assignment (#443)

This commit is contained in:
Joseph Bastulli
2024-04-16 18:54:42 +00:00
committed by GitHub
parent 575f1f98b0
commit 437c4c91bc

View File

@@ -350,7 +350,7 @@ class Crew(BaseModel):
def _set_tasks_callbacks(self) -> str:
"""Sets callback for every task suing task_callback"""
for task in self.tasks:
task.callback = self.task_callback
self.task_callback = task.callback
def _interpolate_inputs(self, inputs: Dict[str, Any]) -> str:
"""Interpolates the inputs in the tasks and agents."""