tool_call_limit parameter when initializing your Agent or Team.
For example:
Tools
Tool Call Limit
Limit the number of tool calls an agent can make.
Limiting the number of tool calls an Agent can make is useful to prevent loops and have better control over costs and performance.
Doing this is very simple with Agno. You just need to pass the