Enable privacy-first, multi-engine search for specialized verticals in Agno agents using SearXNG tools. Conduct decentralized research that can verify facts across multiple search backends simultaneously.
Copy
Ask AI
from agno.agent import Agentfrom agno.tools.searxng import SearxngTools# ---------------------------------------------------------------------------# Create Agent# ---------------------------------------------------------------------------# Initialize Searxng with your Searxng instance URLsearxng = SearxngTools( host="http://localhost:53153", engines=[], fixed_max_results=5, news=True, science=True,)# Create an agent with Searxngagent = Agent(tools=[searxng])# Example: Ask the agent to search using Searxng# ---------------------------------------------------------------------------# Run Agent# ---------------------------------------------------------------------------if __name__ == "__main__": agent.print_response(""" Please search for information about artificial intelligence and summarize the key points from the top results """)