Browser Search Agent

Code

1from kern.agent import Agent
2from kern.models.groq import Groq
3
4agent = Agent(
5 model=Groq(id="openai/gpt-oss-20b"),
6 tools=[{"type": "browser_search"}],
7)
8agent.print_response("Is the Going-to-the-sun road open for public?")

Usage

Set up your virtual environment

1uv venv --python 3.12
2source .venv/bin/activate
1uv venv --python 3.12
2.venv\Scripts\activate

Set your API key

1export GROQ_API_KEY=xxx

Install dependencies

1uv pip install -U groq kern-ai

Run Agent

1python cookbook/11_models/groq/browser_search.py