In this article, you will learn how to send each step of an AI agent to the right model, escalate to a stronger model when a cheap one fails a check, and measure the cost per accepted task.