Debug mode helps you understand the flow of execution and intermediate steps:
- Inspect the messages sent to the model and the response it generates
- Trace intermediate steps and monitor metrics like token usage and execution time
- Inspect tool calls, errors, and their results
Debug Mode
To enable debug mode:
- Set
debug_mode=True on your agent to enable it for all runs.
- Set
debug_mode=True on the run method to enable it for a single run.
- Set the
AGNO_DEBUG=True environment variable to enable debug mode globally.
Set debug_level=2 for more detailed logs.
Interactive CLI
Agno includes a pre-built interactive CLI that runs your Agent as a command-line application. Use it to test multi-turn conversations: