Code

cookbook/models/groq/browser_search.py
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

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
python3 -m venv .venv
source .venv/bin/activate
2

Set your API key

export GROQ_API_KEY=xxx
3

Install libraries

pip install -U groq agno
4

Run Agent

python cookbook/models/groq/browser_search.py