From aebc443b62167ed71345400c96aa243dd3043ec5 Mon Sep 17 00:00:00 2001 From: GabeKoga <45213757+GabeKoga@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:25:59 -0300 Subject: [PATCH] purple (#428) changed from yellow to purple for visibility --- src/crewai/crew.py | 4 ++-- src/crewai/tools/tool_usage.py | 4 ++-- src/crewai/utilities/printer.py | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/crewai/crew.py b/src/crewai/crew.py index 49a60a8cf..efd0465ee 100644 --- a/src/crewai/crew.py +++ b/src/crewai/crew.py @@ -273,9 +273,9 @@ class Crew(BaseModel): task.tools += AgentTools(agents=agents_for_delegation).tools() role = task.agent.role if task.agent is not None else "None" - self._logger.log("debug", f"== Working Agent: {role}", color="bold_yellow") + self._logger.log("debug", f"== Working Agent: {role}", color="bold_purple") self._logger.log( - "info", f"== Starting Task: {task.description}", color="bold_yellow" + "info", f"== Starting Task: {task.description}", color="bold_purple" ) output = task.execute(context=task_output) diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index 0a7740984..954572328 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -101,7 +101,7 @@ class ToolUsage: result = self._i18n.errors("task_repeated_usage").format( tool_names=self.tools_names ) - self._printer.print(content=f"\n\n{result}\n", color="yellow") + self._printer.print(content=f"\n\n{result}\n", color="purple") self._telemetry.tool_repeated_usage( llm=self.function_calling_llm, tool_name=tool.name, @@ -178,7 +178,7 @@ class ToolUsage: calling=calling, output=result, should_cache=should_cache ) - self._printer.print(content=f"\n\n{result}\n", color="yellow") + self._printer.print(content=f"\n\n{result}\n", color="purple") self._telemetry.tool_usage( llm=self.function_calling_llm, tool_name=tool.name, diff --git a/src/crewai/utilities/printer.py b/src/crewai/utilities/printer.py index f0bf8262d..e33a71452 100644 --- a/src/crewai/utilities/printer.py +++ b/src/crewai/utilities/printer.py @@ -1,24 +1,24 @@ class Printer: def print(self, content: str, color: str): - if color == "yellow": - self._print_yellow(content) + if color == "purple": + self._print_purple(content) elif color == "red": self._print_red(content) elif color == "bold_green": self._print_bold_green(content) - elif color == "bold_yellow": - self._print_bold_yellow(content) + elif color == "bold_purple": + self._print_bold_purple(content) else: print(content) - def _print_bold_yellow(self, content): - print("\033[1m\033[93m {}\033[00m".format(content)) + def _print_bold_purple(self, content): + print("\033[1m\033[95m {}\033[00m".format(content)) def _print_bold_green(self, content): print("\033[1m\033[92m {}\033[00m".format(content)) - def _print_yellow(self, content): - print("\033[93m {}\033[00m".format(content)) + def _print_purple(self, content): + print("\033[95m {}\033[00m".format(content)) def _print_red(self, content): print("\033[91m {}\033[00m".format(content))