Fix typo in error message (#687)
This commit is contained in:
parent
72ed3fd49d
commit
f631c7521e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue