jproman's picture
duckduckgo test
1649601
raw
history blame
292 Bytes
from langchain_community.tools import DuckDuckGoSearchRun
def DuckDuckGo(query):
search_tool = DuckDuckGoSearchRun()
results = search_tool.invoke(query)
return results
if __name__ == "__main__":
response = DuckDuckGo("who is the presindent of France")
print(response)