How do I stop an agent loop before it spends more than its execution budget?
A LangGraph agent keeps returning to its tool node. It eventually raises GraphRecursionError, and increasing recursionlimit only lets it perform more work. I want a deterministic cap on tool calls, including a zero-call budget, and an explicit budgetexhausted result rather than an exception that loo