Recover from tool errors
Seton_error: "return-to-model" when the model can recover from a tool failure. The error becomes a tool result and the agent can choose another action. Keep fail-run behavior for unsafe or unrecoverable operations.
Handle model, tool, validation, timeout, and continuation failures in Ruby agents.
on_error: "return-to-model" when the model can recover from a tool failure. The error becomes a tool result and the agent can choose another action. Keep fail-run behavior for unsafe or unrecoverable operations.