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.
Policy JSON
What It Does
- Defines model tiers from most expensive (tier 1) to least expensive (tier 3)
- Enforces a maximum tier — agents cannot use models above the configured tier
- Automatically downgrades requests for tier 1 models to the best available tier 2 model
- Prevents cost surprises from agents that autonomously select expensive models
Example
Agent requests gpt-4o (tier 1) when max tier is 2:
Decision object:
Install
Customize
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.