Skip to content

Commit

Permalink
Fix typo in error message (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
samee99 authored Feb 18, 2025
1 parent 72ed3fd commit f631c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smolagents/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f631c75

Please sign in to comment.