All lessons in AI Engineering: From Foundation Models to Evaluated Applications

Allocate Reasoning and Tool Budgets

Replace routine model turns with explicit control and decide when another attempt is worthwhile.

90 minutes · Members lesson · preview

What you will learn

  • Allocate a shared task budget across planning, tools, retries, and verification.
  • Replace routine model decisions with explicit control without hiding intermediate failures.
  • Evaluate early stopping and escalation using complete task outcomes.

A hard token cap prevents unlimited work, but it does not tell the agent which action is worth taking next. In this phase, make the controller's resource decisions inspectable. Use the same task workload and ledger from the first two Efficient Agents lessons.

Budget 90 minutes: 20 for the decision model, 45 to implement a bounded policy, and 25 for failure tests. Begin with deterministic fixtures, then run an actual agent experiment if you have model access. A calculated expected benefit is a hypothesis to test, not a measured improvement.

Choose another lesson