from langchain_community.tools import DuckDuckGoSearchRun from langchain_community.utilities import DuckDuckGoSearchAPIWrapper import sys sys.dont_write_bytecode = True import sys sys.dont_write_bytecode = True WRAPPER = DuckDuckGoSearchAPIWrapper( max_results=25 ) WEB_SEARCH_TOOL = DuckDuckGoSearchRun( api_wrapper=WRAPPER )