crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
18.43k stars 2.54k forks source link

duckduckgo_search #569

Open xjq284 opened 3 months ago

xjq284 commented 3 months ago

from langchain_community.tools import DuckDuckGoSearchRun ddgs_search_tool = DuckDuckGoSearchRun()


Action: duckduckgo_search Action Input: {"q": "financial management and control within China's shipping industry"}

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 these inputs: A wrapper around DuckDuckGo Search. Useful for when you need to answer questions about current events. Input should be a search query.

noggynoggy commented 3 months ago

The llm is misusung the tool. It shout be "query" not "q". The model doestnt read the error and fix itself zhe solution is a "smarter" model unfortunately

mahimairaja commented 3 months ago

Is this due to hallucination? @noggynoggy

noggynoggy commented 3 months ago

Is this due to hallucination? @noggynoggy

Hallucination is a broad term and by my definition this would not be that. I would just call this the model guessing what to do (as it always does) and being wrong. Hallucination is making up facts and being confident about those.

mahimairaja commented 3 months ago

hmm.. how do you even term it? @noggynoggy jus asking out of kuriosity

github-actions[bot] commented 3 days ago

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.