From 24b09e97cd66b0346de3e80d93f7a3e3ea300546 Mon Sep 17 00:00:00 2001 From: Stephen Hankinson Date: Wed, 16 Oct 2024 11:38:42 -0300 Subject: [PATCH] use the same i18n as the agent for tool usage (#1440) Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com> --- src/crewai/tools/tool_usage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index ebc9c5914..f75a9443a 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -59,7 +59,7 @@ class ToolUsage: agent: Any, action: Any, ) -> None: - self._i18n: I18N = I18N() + self._i18n: I18N = agent.i18n self._printer: Printer = Printer() self._telemetry: Telemetry = Telemetry() self._run_attempts: int = 1