crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

CSVSearchTool._run() missing 1 required positional argument: 'search_query'

Open mjhapp opened this issue 1 year ago • 2 comments

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.

mjhapp avatar Apr 05 '24 14:04 mjhapp

same problem, I see several posts on other forums about this

AlexeyYakovlev1 avatar Apr 09 '24 07:04 AlexeyYakovlev1

@AlexeyYakovlev1 I'm unfamiliar with the forums, may you link me?

GregHilston avatar Apr 15 '24 03:04 GregHilston

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.

github-actions[bot] avatar Aug 19 '24 12:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 25 '24 12:08 github-actions[bot]