Skip to main content

Code

cookbook/11_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

Set up your virtual environment

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

Set your API key

export GROQ_API_KEY=xxx
3

Install dependencies

uv pip install -U groq agno
4

Run Agent

python cookbook/11_models/groq/browser_search.py