Groq
Groq GPT-OSS 120B
Enable reasoning on Groq's GPT-OSS 120B model to compare 9.11 and 9.9 using medium reasoning effort.
Use a currently available model for your Groq account. This sample uses GPT-OSS reasoning; the former Qwen3-32B and Scout examples are retired on ordinary developer tiers.
Agno’s current Groq adapter returns the answer content but does not map Groq’s separate native reasoning field into RunOutput.reasoning_content, including during streaming. include_reasoning=True requests that field from Groq; show_full_reasoning cannot display it through this adapter.
Add the following code to your Python file
from agno.agent import Agent
from agno.models.groq import Groq
agent = Agent(
model=Groq(
id="openai/gpt-oss-120b",
request_params={"reasoning_effort": "medium", "include_reasoning": True}
),
markdown=True,
)
agent.print_response(
"9.11 and 9.9 -- which is bigger?", stream=True
)Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activateInstall dependencies
uv pip install -U agno groqExport your Groq API key
export GROQ_API_KEY="your_groq_api_key_here"Run Agent
python groq_reasoning.py