Enum Class AnthropicServiceTier

java.lang.Object
java.lang.Enum<AnthropicServiceTier>
org.springframework.ai.anthropic.AnthropicServiceTier
All Implemented Interfaces:
Serializable, Comparable<AnthropicServiceTier>, Constable

public enum AnthropicServiceTier extends Enum<AnthropicServiceTier>
Service tier for controlling capacity routing on Anthropic API requests.
Since:
1.0.0
Author:
Soby Chacko
See Also:
  • Enum Constant Details

    • AUTO

      public static final AnthropicServiceTier AUTO
      Use priority capacity if available, otherwise fall back to standard capacity.
    • STANDARD_ONLY

      public static final AnthropicServiceTier STANDARD_ONLY
      Always use standard capacity.
  • Method Details

    • values

      public static AnthropicServiceTier[] 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

      public static AnthropicServiceTier valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toSdkServiceTier

      public com.anthropic.models.messages.MessageCreateParams.ServiceTier toSdkServiceTier()
      Converts this enum to the corresponding SDK MessageCreateParams.ServiceTier value.
      Returns:
      the SDK service tier