Code

cookbook/agent_concepts/tools/searxng_tools.py
from agno.agent import Agent
from agno.tools.searxng import SearxNGTools

agent = Agent(
    tools=[SearxNGTools(instance_url="https://your-searxng-instance.com")],
    show_tool_calls=True,
    markdown=True,
)
agent.print_response("Search for recent news about artificial intelligence")

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Install libraries

pip install -U searxng-client agno
3

Run Agent