Constructor for the SearxngSearch class
OptionalapiBase?: stringBase 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 OptionalparamsProtectedbuildBuilds the URL for the Searxng search.
The path for the URL.
The parameters for the URL.
The base URL.
The complete URL as a string.
Staticlc_
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