Spaces:
Runtime error
Runtime error
from crewai_tools import BaseTool | |
from langchain_community.tools import DuckDuckGoSearchRun | |
class SearchDuckDuckGo(BaseTool): | |
name: str = "SearchDuckDuckGo" | |
description: str = "use DuckDuckGo to fetch some news" | |
def _run(self, question: str) -> str: | |
search = DuckDuckGoSearchRun() | |
result = search.run(question) | |
return result |