All lessons in AI Engineering: From Foundation Models to Evaluated Applications
Route Models with a Complete Cost Ledger
Compare fixed models and escalation using full-episode costs and held-out routing decisions.
90 minutes · Members lesson · preview
What you will learn
- Build a cost ledger that includes all work in an attempted agent task.
- Compare fixed-model and escalation policies without using hidden outcomes as a router.
- Select a routing policy under explicit quality, latency, and spending constraints.
Your application meets its basic evaluation contract, but its costs vary sharply between tasks. Start the Efficient Agents Programme by finding where the money goes. Keep one bounded support or repository task family throughout this programme so later optimizations can be compared against the same baseline.
Budget 90 minutes: 20 for the ledger and worked comparison, 45 for instrumentation, and 25 for a small policy study. The prices below are fictional arithmetic inputs. Use actual usage records and documented prices for a live experiment, or label the whole study as a simulation.