Enum Class AnthropicProvider.Models

java.lang.Object
java.lang.Enum<AnthropicProvider.Models>
dev.agenor.adapters.llm.anthropic.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.
since 0.36.0, for removal in 1.0.0. A public enum of model constants goes stale the day Anthropic ships a model it does not list, and removing a retired constant is itself a breaking change — so offering one at all works against ever reaching a release with no breaking entry. Name a model by its string id instead; every request has honoured one since 0.35.0, and 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 with ModelTokenLimits.register(java.lang.String, int).
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 Constants
    Enum Constant
    Description
    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.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CLAUDE_OPUS_4_6

      public static final AnthropicProvider.Models CLAUDE_OPUS_4_6
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_SONNET_4_6

      public static final AnthropicProvider.Models CLAUDE_SONNET_4_6
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_OPUS_4_5

      public static final AnthropicProvider.Models CLAUDE_OPUS_4_5
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_OPUS_4_1

      public static final AnthropicProvider.Models CLAUDE_OPUS_4_1
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_OPUS_4

      public static final AnthropicProvider.Models CLAUDE_OPUS_4
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_SONNET_4_5

      public static final AnthropicProvider.Models CLAUDE_SONNET_4_5
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_SONNET_4

      public static final AnthropicProvider.Models CLAUDE_SONNET_4
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_HAIKU_4_5

      public static final AnthropicProvider.Models CLAUDE_HAIKU_4_5
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_3_7_SONNET

      public static final AnthropicProvider.Models CLAUDE_3_7_SONNET
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_3_5_SONNET

      public static final AnthropicProvider.Models CLAUDE_3_5_SONNET
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_3_5_HAIKU

      public static final AnthropicProvider.Models CLAUDE_3_5_HAIKU
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_3_5_SONNET_V1

      public static final AnthropicProvider.Models CLAUDE_3_5_SONNET_V1
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_3_OPUS

      public static final AnthropicProvider.Models CLAUDE_3_OPUS
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_3_HAIKU

      public static final AnthropicProvider.Models CLAUDE_3_HAIKU
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_2_1

      public static final AnthropicProvider.Models CLAUDE_2_1
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_2_0

      public static final AnthropicProvider.Models CLAUDE_2_0
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CLAUDE_INSTANT_1_2

      public static final AnthropicProvider.Models CLAUDE_INSTANT_1_2
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Details

    • id

      public final String id
      Deprecated, for removal: This API element is subject to removal in a future version.
    • contextWindow

      public final int contextWindow
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • values

      public 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.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AnthropicProvider.Models valueOf(String name)
      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 name
      NullPointerException - if the argument is null