frdel / agent-zero

Agent Zero AI framework
Other
4.76k stars 1.04k forks source link

DuckDuckGo failing #82

Closed castorinop closed 1 month ago

castorinop commented 2 months ago
Hint: No API key provided for Perplexity. Skipping Perplexity search.
Initializing VectorDB...

{
    "system_error": "Traceback (most recent call last):
  File "/home/pablo/.local/lib/python3.12/site-packages/duckduckgo_search/duckduckgo_search.py", line 213, in text
    results = self._text_api(keywords, region, safesearch, timelimit, max_results)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pablo/.local/lib/python3.12/site-packages/duckduckgo_search/duckduckgo_search.py", line 245, in _text_api
    assert keywords, "keywords is mandatory"
           ^^^^^^^^
AssertionError: keywords is mandatory

AssertionError: keywords is mandatory"

}

frdel commented 1 month ago

This happens when the model does not use tool arguments properly, like "question" in this case.