Module: Anthropic::Models::Model

Extended by:
Internal::Type::Union
Defined in:
lib/anthropic/models/model.rb

Overview

The model that will complete your prompt.\n\nSee models for additional details and options.

collapse

CLAUDE_OPUS_4_6 =

Most intelligent model for building agents and coding

:"claude-opus-4-6"
CLAUDE_SONNET_4_6 =

Best combination of speed and intelligence

:"claude-sonnet-4-6"
CLAUDE_HAIKU_4_5 =

Fastest model with near-frontier intelligence

:"claude-haiku-4-5"
CLAUDE_HAIKU_4_5_20251001 =

Fastest model with near-frontier intelligence

:"claude-haiku-4-5-20251001"
CLAUDE_OPUS_4_5 =

Premium model combining maximum intelligence with practical performance

:"claude-opus-4-5"
CLAUDE_OPUS_4_5_20251101 =

Premium model combining maximum intelligence with practical performance

:"claude-opus-4-5-20251101"
CLAUDE_SONNET_4_5 =

High-performance model for agents and coding

:"claude-sonnet-4-5"
CLAUDE_SONNET_4_5_20250929 =

High-performance model for agents and coding

:"claude-sonnet-4-5-20250929"
CLAUDE_OPUS_4_1 =

Exceptional model for specialized complex tasks

:"claude-opus-4-1"
CLAUDE_OPUS_4_1_20250805 =

Exceptional model for specialized complex tasks

:"claude-opus-4-1-20250805"
CLAUDE_OPUS_4_0 =

Powerful model for complex tasks

:"claude-opus-4-0"
CLAUDE_OPUS_4_20250514 =

Powerful model for complex tasks

:"claude-opus-4-20250514"
CLAUDE_SONNET_4_0 =

High-performance model with extended thinking

:"claude-sonnet-4-0"
CLAUDE_SONNET_4_20250514 =

High-performance model with extended thinking

:"claude-sonnet-4-20250514"
CLAUDE_3_HAIKU_20240307 =
Deprecated.

Will reach end-of-life on April 20th, 2026. Please migrate to claude-haiku-4-5.

Fast and cost-effective model Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.

:"claude-3-haiku-20240307"

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(Symbol, String)

Returns:

  • (Array(Symbol, String))


46
47
48
# File 'lib/anthropic/models/model.rb', line 46

define_sorbet_constant!(:Variants) do
  T.type_alias { T.any(Anthropic::Model::TaggedSymbol, String) }
end