Interface PricingTier.PriorityStage
- All Known Implementing Classes:
PricingTier.Builder
- Enclosing class:
PricingTier
public static interface PricingTier.PriorityStage
-
Method Summary
-
Method Details
-
priority
Priority for tier matching evaluation. Lower numbers = higher priority (evaluated first).
The default tier must always have priority 0. Conditional tiers should have priority 1, 2, 3, etc.
Example ordering:
- Priority 0: Default tier (no conditions, always matches as fallback)
- Priority 1: High usage tier (e.g., >200K tokens)
- Priority 2: Medium usage tier (e.g., >100K tokens)
This ensures more specific conditions are checked before general ones.
-