Teams add coordination complexity. When something goes wrong, you need to trace execution across the leader and all members.Documentation Index
Fetch the complete documentation index at: https://agno-v2-shaloo-ai-support-link.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Debug Mode
Enable debug mode to see the messages sent to the model, tool calls, delegation patterns, and metrics.| Method | Scope |
|---|---|
debug_mode=True on Team | All runs for this team |
debug_mode=True on run() | Single run only |
AGNO_DEBUG=True env var | All teams globally |
debug_level=2 for more detailed logs:
What to Look For
When debugging, check:| Issue | What to inspect |
|---|---|
| Wrong member selected | Leader’s reasoning, member roles |
| Member not responding | Member’s tool calls, errors |
| Slow execution | Token counts, sequential vs parallel execution |
| Unexpected output | Leader’s synthesis step, member responses |
| High token usage | Coordination overhead, context size |
Common Failure Modes
Leader Delegates to Wrong Member
The leader picks members based on theirrole. If delegation is wrong:
- Check that roles clearly describe what each member does
- Make roles distinct (avoid overlap)
- Add instructions to the team leader
Member Fails Silently
If a member fails, the leader may synthesize a response without that member’s output. Enableshow_members_responses=True to see what each member returned:
Infinite Delegation Loop
The leader keeps delegating without producing a final response. This usually means:- Instructions are unclear about when to stop
- Members are returning incomplete results
High Token Usage
Multi-agent coordination burns tokens. A 4-member team can easily use 10x the tokens of a single agent. Check token usage in debug output or metrics:- Use fewer members
- Keep member responses concise
- Use
mode=TeamMode.route(orrespond_directly=True) to skip synthesis
Interactive CLI
Test multi-turn conversations with the built-in CLI:await team.acli_app() for async.
Tracing with AgentOS
For production debugging, connect your team to AgentOS to get:- Visual trace of all delegation and tool calls
- Token usage breakdown by member
- Session history and replay
- Error tracking