Browser Search Agent

Give a Groq agent Groq's built-in browser search tool.

Code

from agno.agent import Agent
from agno.models.groq import Groq

agent = Agent(
    model=Groq(id="openai/gpt-oss-20b"),
    tools=[{"type": "browser_search"}],
)
agent.print_response("Is the Going-to-the-sun road open for public?")

Usage

Set up your virtual environment

uv venv --python 3.12
source .venv/bin/activate

Set your API key

export GROQ_API_KEY=xxx

Install dependencies

uv pip install -U groq agno

Run Agent

Save the code above as browser_search.py, then run:

python browser_search.py