From f631c7521eb8a0fe49c3a14de72f5baaf9bc7797 Mon Sep 17 00:00:00 2001 From: samee99 <53830393+samee99@users.noreply.github.com> Date: Tue, 18 Feb 2025 00:22:09 -0800 Subject: [PATCH] Fix typo in error message (#687) --- src/smolagents/agents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smolagents/agents.py b/src/smolagents/agents.py index 1cdfb8582..a1a91aeb3 100644 --- a/src/smolagents/agents.py +++ b/src/smolagents/agents.py @@ -388,7 +388,7 @@ def execute_tool_call(self, tool_name: str, arguments: Union[Dict[str, str], str if tool_name in self.tools: tool = self.tools[tool_name] error_msg = ( - f"Error whene executing tool {tool_name} with arguments {arguments}: {type(e).__name__}: {e}\nYou should only use this tool with a correct input.\n" + f"Error when executing tool {tool_name} with arguments {arguments}: {type(e).__name__}: {e}\nYou should only use this tool with a correct input.\n" f"As a reminder, this tool's description is the following: '{tool.description}'.\nIt takes inputs: {tool.inputs} and returns output type {tool.output_type}" ) raise AgentExecutionError(error_msg, self.logger)