Applied AI·Agents
you cap the run at twenty iterations and a dollar, because a confused agent will otherwise loop until the invoice notices.
Stop conditions
Draft summary, pending review
Explicit limits on a run: maximum iterations, wall-clock time, token or money budget, and completion criteria. Without them an agent that gets confused will loop until your invoice notices.