AI Agents Architecture — Patterns for Cost-Effective Autonomy | Synapse