Spaces:
Sleeping
Sleeping
| 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) |