mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Fixing task callback
This commit is contained in:
@@ -354,7 +354,8 @@ 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:
|
||||||
self.task_callback = task.callback
|
if not task.callback:
|
||||||
|
task.callback = self.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