mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
recreating executor upon setting new step_callback
This commit is contained in:
@@ -177,6 +177,7 @@ class Crew(BaseModel):
|
||||
agent.i18n = I18N(language=self.language)
|
||||
if (self.step_callback) and (not agent.step_callback):
|
||||
agent.step_callback = self.step_callback
|
||||
agent.create_agent_executor()
|
||||
|
||||
if self.process == Process.sequential:
|
||||
return self._run_sequential_process()
|
||||
|
||||
Reference in New Issue
Block a user