cookbook/90_models/deepseek/reasoning_effort.py
from agno.agent import Agent
from agno.models.deepseek import DeepSeek
agent = Agent(
model=DeepSeek(id="deepseek-v4-pro", reasoning_effort="max"),
markdown=True,
)
task = (
"A farmer needs to cross a river with a fox, a chicken and a sack of grain. "
"The boat only fits the farmer and one item. The fox cannot be left alone with "
"the chicken, and the chicken cannot be left alone with the grain. "
"Provide a step-by-step solution."
)
if __name__ == "__main__":
agent.print_response(task, stream=True, show_full_reasoning=True)