-
The tool is expecting an argument, but I haven't provided one. Why is that?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I found similar discussions related to the error you're encountering:
Additionally, there was a related issue that has been closed: Langchain Tools: TypeError: BaseTool.invoke() takes from 2 to 3 positional arguments but 4 were given. The suggested solution for a similar problem was to ensure that the shell_tool.invoke(input={"command": 'python sum.py', "script_args": None, "inputs": '5\n'}) In your case, it seems like the error might be due to how the |
Beta Was this translation helpful? Give feedback.
I found similar discussions related to the error you're encountering:
Additionally, there was a related issue that has been closed: Langchain Tools: TypeError: BaseTool.invoke() takes from 2 to 3 positional arguments but 4 were given. The suggested solution for a similar problem was to ensure that the
invoke
method is called with the correct input format, like this:In your case, it seems like the error might be due to how the
invoke
method is being called. Ensure that the inp…