Architecting Agents: Loops, Budgets, State and Boundaries — System Design for AI Applications | nexGenCoders