Rules
Rules are evaluated in order. The first matching rule that sets apin_tier wins for that action. Deny rules are cumulative — multiple rules can deny multiple tiers.
deny_tiers
Excludes tiers when the condition is true.pin_tier
Forces a specific tier regardless of other rules. First pin wins.prefer_tier
Softly prefers a tier. Overridden by deny rules.escalate on error
Auto-retry on the next tier when a specific error code is received.Rule conditions reference
| Condition | Type | Description |
|---|---|---|
if_context_tokens_gt | int | Fires when estimated token count exceeds this |
if_task | string | Fires when task_hint matches exactly |
if_error_code | int | Fires when previous call returned this HTTP status |
if_estimated_cost_gt | float | Fires when estimated cost (USD) exceeds this |
Rule are AND-ed. Use separate rules for OR logic.
