Fix typo in error message (#687)

This commit is contained in:
samee99 2025-02-18 00:22:09 -08:00 committed by GitHub
parent 72ed3fd49d
commit f631c7521e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)