Enum Class AnthropicApi.ChatModel

java.lang.Object
java.lang.Enum<AnthropicApi.ChatModel>
org.springframework.ai.anthropic.api.AnthropicApi.ChatModel
All Implemented Interfaces:
Serializable, Comparable<AnthropicApi.ChatModel>, Constable, ChatModelDescription, ModelDescription
Enclosing class:
AnthropicApi

public static enum AnthropicApi.ChatModel extends Enum<AnthropicApi.ChatModel> implements ChatModelDescription
Check the Models overview and model comparison for additional details and options.
  • Enum Constant Details

    • CLAUDE_3_5_SONNET

      public static final AnthropicApi.ChatModel CLAUDE_3_5_SONNET
      The claude-3-5-sonnet-20241022 model.
    • CLAUDE_3_OPUS

      public static final AnthropicApi.ChatModel CLAUDE_3_OPUS
      The CLAUDE_3_OPUS
    • CLAUDE_3_SONNET

      public static final AnthropicApi.ChatModel CLAUDE_3_SONNET
      The CLAUDE_3_SONNET (Deprecated. To be removed on July 21, 2025)
    • CLAUDE_3_5_HAIKU

      public static final AnthropicApi.ChatModel CLAUDE_3_5_HAIKU
      The CLAUDE 3.5 HAIKU
    • CLAUDE_3_HAIKU

      public static final AnthropicApi.ChatModel CLAUDE_3_HAIKU
      The CLAUDE_3_HAIKU
    • CLAUDE_2_1

      public static final AnthropicApi.ChatModel CLAUDE_2_1
      The CLAUDE_2_1 (Deprecated. To be removed on July 21, 2025)
    • CLAUDE_2

      public static final AnthropicApi.ChatModel CLAUDE_2
      The CLAUDE_2_0 (Deprecated. To be removed on July 21, 2025)
  • Method Details

    • values

      public static AnthropicApi.ChatModel[] 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 AnthropicApi.ChatModel 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
    • getValue

      public String getValue()
      Get the value of the model.
      Returns:
      The value of the model.
    • getName

      public String getName()
      Get the name of the model.
      Specified by:
      getName in interface ModelDescription
      Returns:
      The name of the model.