Code
cookbook/reasoning/models/azure_ai_foundry/reasoning_model_deepseek.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
import os
from agno.agent import Agent
from agno.models.azure import AzureAIFoundry
agent = Agent(
model=AzureAIFoundry(id="gpt-4o"),
reasoning=True,
reasoning_model=AzureAIFoundry(
id="DeepSeek-R1",
azure_endpoint=os.getenv("AZURE_ENDPOINT"),
api_key=os.getenv("AZURE_API_KEY"),
),
)
agent.print_response(
"Solve the trolley problem. Evaluate multiple ethical frameworks. "
"Include an ASCII diagram of your solution.",
stream=True,
)
Create a virtual environment
Terminal and create a python virtual environment.python3 -m venv .venv
source .venv/bin/activate
Was this page helpful?