Class: Anthropic::Models::ModelInfo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/model_info.rb

Overview

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

#initialize(id: , created_at: , display_name: , type: :model) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::ModelInfo for more details.

Parameters:

  • id (String) (defaults to: )

    Unique model identifier.

  • created_at (Time) (defaults to: )

    RFC 3339 datetime string representing the time at which the model was released.

  • display_name (String) (defaults to: )

    A human-readable name for the model.

  • type (Symbol, :model) (defaults to: :model)

    Object type.



# File 'lib/anthropic/models/model_info.rb', line 34

Instance Attribute Details

#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.

Returns:

  • (Time)


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

required :created_at, Time

#display_nameString

A human-readable name for the model.

Returns:

  • (String)


24
# File 'lib/anthropic/models/model_info.rb', line 24

required :display_name, String

#idString

Unique model identifier.

Returns:

  • (String)


11
# File 'lib/anthropic/models/model_info.rb', line 11

required :id, String

#typeSymbol, :model

Object type.

For Models, this is always "model".

Returns:

  • (Symbol, :model)


32
# File 'lib/anthropic/models/model_info.rb', line 32

required :type, const: :model