Skip to content

An error occurred: BaseTool.__call__() missing 1 required positional argument: 'tool_input' #27864

Answered by dosubot bot
0xrushi asked this question in Ask Dosu
Discussion options

You must be logged in to vote

I found similar discussions related to the error you're encountering:

  1. TypeError: BaseTool.call() missing 1 required positional argument: 'tool_input' [1].
  2. Tool Input exception for query [2].

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:

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 invoke method is being called. Ensure that the inp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0xrushi
Comment options

Answer selected by 0xrushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant