Skip to content

RuntimeWarning: coroutine 'DuckDuckGoSearchEngine.perform_search' was never awaited #927

Description

@phoenine

Bug Description

app/tool/web_search.py:100: RuntimeWarning: coroutine 'DuckDuckGoSearchEngine.perform_search' was never awaited

Need to remove async in duckduckgo_search.py

Bug solved method

class DuckDuckGoSearchEngine(WebSearchEngine):
    def perform_search(self, query, num_results=10, *args, **kwargs):
        """DuckDuckGo search engine."""
        return DDGS.text(query, num_results=num_results)

Environment information

  • System version:
  • Python version:
  • OpenManus version or branch: hackathon
  • Installation method (e.g., pip install -r requirements.txt or pip install -e .):

Extra information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions