deepseek_plus_claude.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your API keys
4
Run the example
Save the code above as
deepseek_plus_claude.py, then run:Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Route reasoning through Qwen3-32B on Groq while Claude writes the final answer.
"""
Groq Reasoning Plus Claude
==========================
A Groq-hosted reasoning model thinks; Claude writes the answer.
"""
from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.groq import Groq
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(
model=Claude(id="claude-sonnet-4-5"),
reasoning_model=Groq(
id="openai/gpt-oss-120b",
temperature=0.6,
max_tokens=1024,
top_p=0.95,
),
)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent.print_response(
"9.11 and 9.9 -- which is bigger?",
stream=True,
show_full_reasoning=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 anthropic groq
Export your API keys
export ANTHROPIC_API_KEY="your_anthropic_api_key_here"
export GROQ_API_KEY="your_groq_api_key_here"
$Env:ANTHROPIC_API_KEY="your_anthropic_api_key_here"
$Env:GROQ_API_KEY="your_groq_api_key_here"
Run the example
deepseek_plus_claude.py, then run:python deepseek_plus_claude.py