Resilience and Error Handling
Build reliable agents using retries, post-hook error management, and explicit stop conditions.
Use tool-result feedback to let the model revise its next call, or stop the current agent loop explicitly.
| Example | Description |
|---|---|
| Retry Tool Call | Raise feedback that asks the model to make another tool call. |
| Retry Tool Call From Post Hook | Check state after a successful tool body and request another call when needed. |
| Stop Agent Exception | Stop further model/tool iterations from inside a tool. |