mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
fix: swapped the task callback assignment (#443)
This commit is contained in:
@@ -350,7 +350,7 @@ class Crew(BaseModel):
|
|||||||
def _set_tasks_callbacks(self) -> str:
|
def _set_tasks_callbacks(self) -> str:
|
||||||
"""Sets callback for every task suing task_callback"""
|
"""Sets callback for every task suing task_callback"""
|
||||||
for task in self.tasks:
|
for task in self.tasks:
|
||||||
task.callback = self.task_callback
|
self.task_callback = task.callback
|
||||||
|
|
||||||
def _interpolate_inputs(self, inputs: Dict[str, Any]) -> str:
|
def _interpolate_inputs(self, inputs: Dict[str, Any]) -> str:
|
||||||
"""Interpolates the inputs in the tasks and agents."""
|
"""Interpolates the inputs in the tasks and agents."""
|
||||||
|
|||||||
Reference in New Issue
Block a user