Restrict agents to cost-appropriate model tiers with automatic downgrade on violation.
Organize models into cost tiers and restrict agents to a maximum tier. When an agent requests a model above its allowed tier, TealEngine automatically downgrades to the highest permitted model.
Map of tier names to model arrays. Add your own tiers and models
max_tier
2
Maximum allowed tier (1 = most expensive, 3 = cheapest)
action_on_violation
DEGRADE
Action on tier violation. Options: DEGRADE, DENY, MONITOR
downgrade_to_tier
2
Target tier for automatic downgrade
Use DENY instead of DEGRADE when model capability matters more than availability. For example, a code generation agent may produce incorrect results with a cheaper model — better to deny and alert than silently downgrade.