class SearxngSearchSerializableconst executor = AgentExecutor.fromAgentAndTools({
agent,
tools: [
new SearxngSearch({
params: {
format: "json",
engines: "google",
},
headers: {},
}),
],
});
const result = await executor.invoke({
input: `What is Langchain? Describe in 50 words`,
});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/searxng