diff --git a/src/smolagents/agents.py b/src/smolagents/agents.py index 1cdfb85..a1a91ae 100644 --- a/src/smolagents/agents.py +++ b/src/smolagents/agents.py @@ -388,7 +388,7 @@ class MultiStepAgent: 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)