1
Agentic Architecture and Orchestration
hard
An architect is designing an evaluator-optimizer loop in a custom orchestrator built on the Messages API. The 'optimizer' agent is tasked with refining a technical document. To prevent the loop from running indefinitely, the architect wants to limit the total cost of the process. Which strategy is the most robust way to enforce this budget?