crewAI: DuckDuckGo Search not working anymore? Not supported?
I updated to the latest crewai release 0.19.0 and DuckDuckGo Search does not working anymore. Is this not supported anymore? Here is the error:
`Action: duckduckgo_search Action Input: {“q”: “AIi news latest not older than 1 day”}
I encountered an error while trying to use the tool. This was the error: DuckDuckGoSearchRun._run() got an unexpected keyword argument ‘q’. Tool duckduckgo_search accepts there inputs: A wrapper around DuckDuckGo Search. Useful for when you need to answer questions about current events. Input should be a search query. `
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (1 by maintainers)
Commits related to this issue
- Update Crews.md To solve : I encountered an error while trying to use the tool. This was the error: DuckDuckGoSearchRun._run() got an unexpected keyword argument 'q'. Tool duckduckgo_search accept... — committed to stsfaroz/crewAI by stsfaroz 2 years ago
- Update Crews.md (#889) To solve : I encountered an error while trying to use the tool. This was the error: DuckDuckGoSearchRun._run() got an unexpected keyword argument 'q'. Tool duckduckgo_search... — committed to crewAIInc/crewAI by stsfaroz 2 years ago
- Update Crews.md (#889) To solve : I encountered an error while trying to use the tool. This was the error: DuckDuckGoSearchRun._run() got an unexpected keyword argument 'q'. Tool duckduckgo_search... — committed to rnadigital/crewAI by stsfaroz 2 years ago
- Update Crews.md (#889) To solve : I encountered an error while trying to use the tool. This was the error: DuckDuckGoSearchRun._run() got an unexpected keyword argument 'q'. Tool duckduckgo_search... — committed to rnadigital/crewAI by stsfaroz 2 years ago
- Update Crews.md (#889) To solve : I encountered an error while trying to use the tool. This was the error: DuckDuckGoSearchRun._run() got an unexpected keyword argument 'q'. Tool duckduckgo_search... — committed to crewAIInc/crewAI by stsfaroz 2 years ago
Hello guys, I was facing absolutely the same problem but after the solution suggested by João seems it finally worked
The changed part:
Output:
It seems to be something around how the duckduckgo tool specificaly was constructed, if you wrap it as a crewAI tool it shoudl work:
– João Moura @joaomdmoura http://twitter.com/joaomdmoura
Em ter., 5 de mar. de 2024 às 13:18, marioz78 @.***> escreveu:
Hi, I have the same issue with error msg --> action duck_search doesn’t exist
wrapping it as suggested got the same errore --> Action ‘DuckDuckGoSearch(‘latest advancements in AI 2024’)’ don’t exist, these are the only available Actions: DuckDuckGoSearch: DuckDuckGoSearch(search_query: ‘string’) - Search the web for information on a given topic
Just a suggestion. I isolated/debug the issue by creating a test.py with only the minimum code. First to use the tool by itself, nothing else, and see if it works. And so on…
And I figure out that I could not use the old way:
search_tool = searchduck(source_material)
but invoking the searchduck(source_material) directly inside the Agent declaration. Not sure if this is your case but it worked for me.
Is there something wrong with these tool
I am getting this output