Seltz
Search the web with SeltzTools and log raw tool results for debugging.
SeltzTools gives an agent Seltz web search. show_results=True logs each search query and raw result for debugging.
Prerequisites
- Set required environment variables:
export SELTZ_API_KEY=your_seltz_api_keyandexport OPENAI_API_KEY=your_openai_api_key.
"""Seltz Tools Example.
Run `pip install seltz agno openai python-dotenv` to install dependencies.
"""
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.tools.seltz import SeltzTools
from dotenv import load_dotenv
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
load_dotenv()
agent = Agent(
model=OpenAIResponses(id="gpt-5.2"),
tools=[SeltzTools(show_results=True)],
markdown=True,
)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent.print_response("Search for current AI safety reports", markdown=True)Run the Example
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno
git checkout d703c34f3abf3c41275d3fb2da6e0518a8881f24
# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate
uv pip install -U seltz openai python-dotenv
python cookbook/91_tools/seltz_tools.pyFor details, see Seltz cookbook.