"description":"DuckDuckGo is a search engine focused on privacy. It offers search capabilities for web pages, images, and provides translation services. DuckDuckGo also features a private AI chat interface, providing users with an AI assistant that prioritizes data protection.",
"parameters":{
"query":{
"type":"string",
"description":"The search keywords to execute with DuckDuckGo. The keywords should be the most important words/terms(includes synonyms) from the original request.",
"default":"{sys.query}",
"required":True
},
"channel":{
"type":"string",
"description":"default:general. The category of the search. `news` is useful for retrieving real-time updates, particularly about politics, sports, and major current events covered by mainstream media sources. `general` is for broader, more general-purpose searches that may include a wide range of sources.",
"enum":["general","news"],
"default":"general",
"required":False,
},
}
}
super().__init__()
self.top_n=10
self.channel="text"
defcheck(self):
self.check_positive_integer(self.top_n,"Top N")
self.check_valid_value(self.channel,"Web Search or News",["text","news"])