Anthropic: Building effective agents
Primary guidance on simple workflows, tool use, orchestration, and adding autonomy only when it creates measured value.
Compute College
Use task-aware model routing and approved fallbacks to balance quality, latency, resilience, and cost.
Model routing sends different requests to different approved models or deployments based on task, risk, context, latency, or capacity. A model portfolio is the set of primary, fallback, and specialized options plus the policy that chooses among them.
Memory trick: A portfolio is a policy, not a pile of models.
One model rarely dominates every task and operating condition. Routing can use a smaller model for simple work and reserve a stronger model for difficult or high-risk cases, but the policy must be evaluated for quality, fairness, availability, and cost.
A support system routes short classification requests to a smaller model, sends ambiguous or policy-sensitive cases to a stronger model, and falls back to a queued human review when both are unavailable. The routing decision is logged and tested like any other product behavior.
Example figures are illustrative calculations, not current quoted market prices.
Current example
This source explains the method or risk boundary. It does not replace testing the actual model, data, provider, and workload conditions in production.
Primary guidance on simple workflows, tool use, orchestration, and adding autonomy only when it creates measured value.
Source discipline: examples on this page are illustrative; measure the real workload before making a release or capacity decision.
Token price alone is a poor routing policy. A cheaper model that produces more retries or unsafe escalations may have a higher cost per successful outcome.
Practical takeaway
Define routing rules, confidence or task signals, fallback order, capacity limits, and audit metrics. Compare the portfolio with a single-model baseline.
Decision check: can the portfolio explain why each request went to a model and what happens when that option is unavailable?
Compute College learning path
Step 45 of 48: Routing, fallbacks, and model portfolios