1
Add the following code to your Python file
groq_plus_claude.py
2
Set up your virtual environment
3
Install dependencies
4
Export your Groq and Anthropic API keys
5
Run Agent
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Pair Claude Sonnet 4.5 with Groq’s Qwen3 32B as a reasoning model to compare 9.11 and 9.9.
Add the following code to your Python file
from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.groq import Groq
reasoning_agent = Agent(
model=Claude(id="claude-sonnet-4-5"),
reasoning_model=Groq(
id="qwen/qwen3-32b", temperature=0.6, max_tokens=1024, top_p=0.95
),
)
reasoning_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/activate
uv venv --python 3.12
.venv\Scripts\activate
Install dependencies
uv pip install -U agno groq anthropic
Export your Groq and Anthropic API keys
export GROQ_API_KEY="your_groq_api_key_here"
export ANTHROPIC_API_KEY="your_anthropic_api_key_here"
$Env:GROQ_API_KEY="your_groq_api_key_here"
$Env:ANTHROPIC_API_KEY="your_anthropic_api_key_here"
Run Agent
python groq_plus_claude.py
Was this page helpful?