- All Implemented Interfaces:
Serializable,Comparable<ModelTier>,Constable
Capability tier an agent or step declares instead of a concrete, versioned model string. The runtime resolves a tier
to a provider-specific model via
ModelTierResolver at invocation time, so a model release becomes a
configuration change rather than a bundle edit.
This is orchestration metadata; it is never part of the provider-facing
LlmExecutionRequest. A raw model pin always takes precedence over a tier.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelTierParses a declared tier name into aModelTier, trimming surrounding whitespace and upper-casing before matching.static ModelTierReturns the enum constant of this class with the specified name.static ModelTier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LITE
Cheapest, fastest tier — suitable for routine, low-risk steps. -
STANDARD
Balanced default tier — general-purpose capability and cost. -
POWERFUL
Strongest tier — for high-risk, review, generation, or reasoning-heavy steps.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromName
Parses a declared tier name into aModelTier, trimming surrounding whitespace and upper-casing before matching. This is the single canonical tier-name parse shared by every caller (invocation and cost-estimate paths) so the accepted set of spellings can never drift between them. Callers decide how to surface a failure — the runtime rethrows as a hardModelTierResolutionException; the estimate path catches it and emits a marker key.- Parameters:
name- the tier name; must not be blank. Matching is whitespace-tolerant and case-insensitive, but the trimmed, upper-cased value must equal a declared tier- Returns:
- the matching tier; never
null - Throws:
IllegalArgumentException- ifnameis blank or does not match a declared tier
-