Enum Class AnthropicProvider.Models
- All Implemented Interfaces:
Serializable,Comparable<AnthropicProvider.Models>,Constable
- Enclosing class:
AnthropicProvider
@Deprecated(since="0.36.0",
forRemoval=true)
public static enum AnthropicProvider.Models
extends Enum<AnthropicProvider.Models>
Deprecated, for removal: This API element is subject to removal in a future version.
Known Anthropic model identifiers and their context window sizes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intDeprecated, for removal: This API element is subject to removal in a future version.final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnthropicProvider.ModelsDeprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static AnthropicProvider.Models[]values()Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLAUDE_OPUS_4_6
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_SONNET_4_6
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_OPUS_4_5
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_OPUS_4_1
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_OPUS_4
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_SONNET_4_5
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_SONNET_4
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_HAIKU_4_5
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_3_7_SONNET
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_3_5_SONNET
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_3_5_HAIKU
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_3_5_SONNET_V1
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_3_OPUS
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_3_HAIKU
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_2_1
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_2_0
Deprecated, for removal: This API element is subject to removal in a future version. -
CLAUDE_INSTANT_1_2
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Field Details
-
id
Deprecated, for removal: This API element is subject to removal in a future version. -
contextWindow
public final int contextWindowDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
-
AnthropicProvider.getDefaultModel()still names a sensible default when none is given. If the model needs a context window other than the fallback, register one directly withModelTokenLimits.register(java.lang.String, int).