> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-codex-docs-audit-20260719-0149.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 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_key` and `export OPENAI_API_KEY=your_openai_api_key`.

```python theme={null}
"""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

```bash theme={null}
# Clone and setup repo
git clone --branch v2.7.4 --depth 1 https://github.com/agno-agi/agno.git
cd agno

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

uv pip install -U seltz

python cookbook/91_tools/seltz_tools.py
```

For details, see [Seltz cookbook](https://github.com/agno-agi/agno/blob/v2.7.4/cookbook/91_tools/seltz_tools.py).
