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, org.springframework.ai.model.ChatModelDescription, org.springframework.ai.model.ModelDescription
Enclosing class:
AnthropicApi

public static enum AnthropicApi.ChatModel extends Enum<AnthropicApi.ChatModel> implements org.springframework.ai.model.ChatModelDescription
Check the Models overview and model comparison for additional details and options.
Since:
1.0.0
Author:
Christian Tzolov, Mariusz Bernacki, Thomas Vitale, Jihoon Kim, Alexandros Pappas, Jonghoon Park, Claudio Silva Junior, Filip Hrisafov, Soby Chacko, Austin Dase
  • Enum Constant Details

    • CLAUDE_SONNET_4_5

      public static final AnthropicApi.ChatModel CLAUDE_SONNET_4_5
      The claude-sonnet-4-5 model.
    • CLAUDE_OPUS_4_5

      public static final AnthropicApi.ChatModel CLAUDE_OPUS_4_5
      The claude-opus-4-5 model.
    • CLAUDE_HAIKU_4_5

      public static final AnthropicApi.ChatModel CLAUDE_HAIKU_4_5
      The claude-haiku-4-5 model.
    • CLAUDE_OPUS_4_1

      public static final AnthropicApi.ChatModel CLAUDE_OPUS_4_1
      The claude-opus-4-1 model.
    • CLAUDE_OPUS_4_0

      public static final AnthropicApi.ChatModel CLAUDE_OPUS_4_0
      The claude-opus-4-0 model.
    • CLAUDE_SONNET_4_0

      public static final AnthropicApi.ChatModel CLAUDE_SONNET_4_0
      The claude-sonnet-4-0 model.
    • CLAUDE_3_7_SONNET

      public static final AnthropicApi.ChatModel CLAUDE_3_7_SONNET
      The claude-3-7-sonnet-latest model.
    • CLAUDE_3_5_SONNET

      public static final AnthropicApi.ChatModel CLAUDE_3_5_SONNET
      The claude-3-5-sonnet-latest model.(Deprecated on October 28, 2025)
    • 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
  • 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 org.springframework.ai.model.ModelDescription
      Returns:
      The name of the model.