CSVSearchTool._run() missing 1 required positional argument: 'search_query'
I noticed in the output:
Action: Search a CSV's content
Action Input: {"query": "Bonjour"}
To troubleshoot, I changed CSVSearchTool._run from
def _run(
self,
search_query: str, #here
**kwargs: Any,
) -> Any:
return super()._run(query=search_query) #and here
to
def _run(
self,
query: str,
**kwargs: Any,
) -> Any:
return super()._run(query=query)
Which fixed the problem.
I don't, however, know whether that is the ideal solution or whether the Action Input should be rendered as
{"search_query": "xxx"}
This is the first tool I've played with so not sure what the other ones are expecting.
same problem, I see several posts on other forums about this
@AlexeyYakovlev1 I'm unfamiliar with the forums, may you link me?
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.