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.

ExampleDescription
Retry Tool CallRaise feedback that asks the model to make another tool call.
Retry Tool Call From Post HookCheck state after a successful tool body and request another call when needed.
Stop Agent ExceptionStop further model/tool iterations from inside a tool.