Class: Anthropic::Models::Beta::BetaModelInfo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_model_info.rb,
sig/anthropic/models/beta/beta_model_info.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Models#retrieve

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initializevoid



32
# File 'sig/anthropic/models/beta/beta_model_info.rbs', line 32

def initialize: (

Instance Attribute Details

#capabilitiesAnthropic::Models::Beta::BetaModelCapabilities?

Model capability information.

Parameters:

  • value (Anthropic::Beta::BetaModelCapabilities, nil)

Returns:



18
# File 'lib/anthropic/models/beta/beta_model_info.rb', line 18

required :capabilities, -> { Anthropic::Beta::BetaModelCapabilities }, nil?: true

#created_atTime

RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.

Parameters:

  • value (Time)

Returns:

  • (Time)


25
# File 'lib/anthropic/models/beta/beta_model_info.rb', line 25

required :created_at, Time

#display_nameString

A human-readable name for the model.

Parameters:

  • value (String)

Returns:

  • (String)


31
# File 'lib/anthropic/models/beta/beta_model_info.rb', line 31

required :display_name, String

#idString

Unique model identifier.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/anthropic/models/beta/beta_model_info.rb', line 12

required :id, String

#max_input_tokensInteger?

Maximum input context window size in tokens for this model.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


37
# File 'lib/anthropic/models/beta/beta_model_info.rb', line 37

required :max_input_tokens, Integer, nil?: true

#max_tokensInteger?

Maximum value for the max_tokens parameter when using this model.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


43
# File 'lib/anthropic/models/beta/beta_model_info.rb', line 43

required :max_tokens, Integer, nil?: true

#typeSymbol, :model

Object type.

For Models, this is always "model".

Parameters:

  • value (:model)

Returns:

  • (Symbol, :model)


51
# File 'lib/anthropic/models/beta/beta_model_info.rb', line 51

required :type, const: :model

Instance Method Details

#to_hash{

Returns:

  • ({)


42
# File 'sig/anthropic/models/beta/beta_model_info.rbs', line 42

def to_hash: -> {