mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 08:38:30 +00:00
Preparing to cut new version
This commit is contained in:
@@ -72,13 +72,15 @@ class Crew(BaseModel):
|
||||
tools = AgentTools(agents=self.agents).tools()
|
||||
task.tools += tools
|
||||
|
||||
if self.verbose:
|
||||
print(f"Working Agent: {task.agent.role}")
|
||||
print(f"Starting Task: {task.description} ...")
|
||||
self.__log(f"\nWorking Agent: {task.agent.role}")
|
||||
self.__log(f"Starting Task: {task.description} ...")
|
||||
|
||||
task_outcome = task.execute(task_outcome)
|
||||
|
||||
if self.verbose:
|
||||
print(f"Task output: {task_outcome}")
|
||||
self.__log(f"Task output: {task_outcome}")
|
||||
|
||||
return task_outcome
|
||||
return task_outcome
|
||||
|
||||
def __log(self, message):
|
||||
if self.verbose:
|
||||
print(message)
|
||||
Reference in New Issue
Block a user