Preparing to cut new version

This commit is contained in:
Joao Moura
2023-11-18 22:09:42 -03:00
parent 5163a3a7b5
commit 13c19c8032
3 changed files with 13 additions and 10 deletions

View File

@@ -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)