> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Resilience and Error Handling

> Build reliable agents using retries, post-hook error management, and explicit stop conditions.

Use automated retries for transient API issues and stop conditions for unrecoverable errors to prevent execution loops.

| Example | Description |
| - | - |
| [Retry Tool Call](https://agno-v2.mintlify.site/examples/tools/exceptions/retry-tool-call.md) | Implement automatic retries for flaky or rate-limited tool executions. |
| [Retry Tool Call From Post Hook](https://agno-v2.mintlify.site/examples/tools/exceptions/retry-tool-call-from-post-hook.md) | Intercept errors and trigger retries using post-execution hooks to maintain workflow continuity. |
| [Stop Agent Exception](https://agno-v2.mintlify.site/examples/tools/exceptions/stop-agent-exception.md) | Gracefully terminate execution when specific error conditions are met to prevent "hallucination loops." |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.