mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
feat: change log to inside function
This commit is contained in:
@@ -346,7 +346,6 @@ class Crew(BaseModel):
|
|||||||
agent.create_agent_executor()
|
agent.create_agent_executor()
|
||||||
|
|
||||||
if self.planning:
|
if self.planning:
|
||||||
self._logger.log("info", "Planning the crew execution")
|
|
||||||
self._handle_crew_planning()
|
self._handle_crew_planning()
|
||||||
|
|
||||||
metrics = []
|
metrics = []
|
||||||
@@ -432,6 +431,7 @@ class Crew(BaseModel):
|
|||||||
|
|
||||||
def _handle_crew_planning(self):
|
def _handle_crew_planning(self):
|
||||||
"""Handles the Crew planning."""
|
"""Handles the Crew planning."""
|
||||||
|
self._logger.log("info", "Planning the crew execution")
|
||||||
result = CrewPlanner(self.tasks)._handle_crew_planning()
|
result = CrewPlanner(self.tasks)._handle_crew_planning()
|
||||||
|
|
||||||
for task, step_plan in zip(self.tasks, result.list_of_plans_per_task):
|
for task, step_plan in zip(self.tasks, result.list_of_plans_per_task):
|
||||||
|
|||||||
Reference in New Issue
Block a user