Copy
Ask AI
"""
Debug
=============================
Debug.
"""
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
# You can set the debug mode on the agent for all runs to have more verbose output
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(
model=OpenAIResponses(id="gpt-5-mini"),
debug_mode=True,
)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent.print_response(input="Tell me a joke.")
# You can also set the debug mode on a single run
agent = Agent(
model=OpenAIResponses(id="gpt-5-mini"),
)
agent.print_response(input="Tell me a joke.", debug_mode=True)
Run the Example
Copy
Ask AI
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/02_agents/14_advanced
# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate
python debug.py