Copy
Ask AI
"""
Cerebras Default COT Fallback
=============================
Demonstrates default chain-of-thought behavior with a Cerebras model.
"""
from agno.agent import Agent
from agno.models.cerebras import Cerebras
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
reasoning_agent = Agent(
model=Cerebras(id="llama-3.3-70b"),
reasoning=True,
debug_mode=True,
markdown=True,
)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
reasoning_agent.print_response(
"Give me steps to write a python script for fibonacci series",
stream=True,
show_full_reasoning=True,
)
Run the Example
Copy
Ask AI
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/10_reasoning/agents
# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate
python cerebras_llama_default_COT.py