Agno comes with an exceptionally well-built debug mode that takes your team development experience to the next level. It helps you understand the flow of execution and the intermediate steps. For example:
- Inspect the messages sent to the model and the response it generates.
- Trace intermediate steps and monitor metrics like token usage, execution time, etc.
- Inspect tool calls, errors, and their results.
- Monitor team member interactions and delegation patterns.
Debug Mode
To enable debug mode:
- Set the
debug_mode parameter on your team, to enable it for all runs, as well as for member runs.
- Set the
debug_mode parameter on the run method, to enable it for the current run.
- Set the
AGNO_DEBUG environment variable to True, to enable debug mode for all teams.
You can set debug_level=2 to get even more detailed logs.
Interactive CLI
Agno also comes with a pre-built interactive CLI that runs your Team as a command-line application. You can use this to test back-and-forth conversations with your team.
Developer Resources