Errors & recovery · 2026-10-19

After a tool returns an error, the agent calmly calls the very same tool with the very same arguments, again…

After a tool returns an error, the agent calmly calls the very same tool with the very same arguments, again and again.

  1. AHide the error from the model and return an empty result instead
  2. BFeed the error text back as the tool’s result AND require the next step to differ from the one that failed
  3. CRetry up to ten times with the same arguments and a growing delay, since tool errors are usually transient and the next attempt will often succeed on its own
  4. DFail the whole run on the first tool error

Answer: B

Feed the error text back as the tool’s result AND require the next step to differ from the one that failed

Why

Two things have to be true at once: an error the model cannot SEE it cannot route around, and an error it cannot ACT on it will simply repeat. Hiding it is the worst of the options - an empty result reads as «nothing found», which is a different and false fact.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path