Constructor for the SearxngSearch class
OptionalapiBase URL of Searxng instance
Optionalheaders?: SearxngCustomHeadersCustom headers Set custom headers if you're using a api from RapidAPI (https://rapidapi.com/iamrony777/api/searxng) No headers needed for a locally self-hosted instance
Optionalparams?: SearxngSearchParamsSearxNG Paramerters
https://docs.searxng.org/dev/search_api.html check here for more details
Protected OptionalapiProtected OptionalheadersProtected Optionalparams
SearxngSearch class represents a meta search engine tool. Use this class when you need to answer questions about current events. The input should be a search query, and the output is a JSON array of the query results.
note: works best with agentType:
structured-chat-zero-shot-react-descriptionhttps://github.com/searxng/searxngExample