Asked about Budgets, loops and giving up well

What should an agent return when it runs out of budget?

An answer that works

A structured partial result: what it achieved, what it could not, why it stopped, and what it cost. Raising an exception throws away work the caller could still use.

Reading an answer is not being able to give one. The section that teaches this is Budgets, loops and giving up well, 3 hours of The agent loop.

Learn this properly