Enum Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe CLAUDE_2_0 (Deprecated.The CLAUDE_2_1 (Deprecated.The CLAUDE 3.5 HAIKUThe claude-3-5-sonnet-20241022 model.The CLAUDE_3_HAIKUThe CLAUDE_3_OPUSThe CLAUDE_3_SONNET (Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the model.getValue()Get the value of the model.static AnthropicApi.ChatModelReturns the enum constant of this class with the specified name.static AnthropicApi.ChatModel[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.springframework.ai.model.ModelDescription
getDescription, getVersion
-
Enum Constant Details
-
CLAUDE_3_5_SONNET
The claude-3-5-sonnet-20241022 model. -
CLAUDE_3_OPUS
The CLAUDE_3_OPUS -
CLAUDE_3_SONNET
The CLAUDE_3_SONNET (Deprecated. To be removed on July 21, 2025) -
CLAUDE_3_5_HAIKU
The CLAUDE 3.5 HAIKU -
CLAUDE_3_HAIKU
The CLAUDE_3_HAIKU -
CLAUDE_2_1
The CLAUDE_2_1 (Deprecated. To be removed on July 21, 2025) -
CLAUDE_2
The CLAUDE_2_0 (Deprecated. To be removed on July 21, 2025)
-
-
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
-
getValue
Get the value of the model.- Returns:
- The value of the model.
-
getName
Get the name of the model.- Specified by:
getNamein interfaceModelDescription- Returns:
- The name of the model.
-