GoogleSerperResults._run() got an unexpected keyword argument '__arg1' while using bind_tools #21974
Replies: 2 comments
-
The error The To resolve this issue, you can modify the class GoogleSerperResults(BaseTool):
# ... existing code ...
def _run(
self,
query: str,
run_manager: Optional[CallbackManagerForToolRun] = None,
**kwargs # Accept additional keyword arguments
) -> str:
"""Use the tool."""
return str(self.api_wrapper.results(query)) This modification allows the Additionally, ensure that the tools you are binding are compatible with the expected format and that the
|
Beta Was this translation helpful? Give feedback.
-
Getting the same for We shouldn't need to modify the tool just to get it running, as described above. |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
Getting error that GoogleSerperResults._run() got an unexpected keyword argument '__arg1'
can anyone help me with that?
System Info
Python 3.10.9
Beta Was this translation helpful? Give feedback.
All reactions