Constructor for the SearxngSearch class
Optional
apiBase?: stringBase URL of Searxng instance
Optional
headers?: 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
Optional
params?: SearxngSearchParamsSearxNG Paramerters
https://docs.searxng.org/dev/search_api.html check here for more details
Protected
Optional
apiProtected
Optional
headersProtected
Optional
paramsProtected
buildBuilds 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.
Static
lc_
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-description
https://github.com/searxng/searxngExample