Class: Anthropic::Models::ModelInfo
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::ModelInfo
- Defined in:
- lib/anthropic/models/model_info.rb
Overview
Instance Attribute Summary collapse
-
#capabilities ⇒ Anthropic::Models::ModelCapabilities?
Model capability information.
-
#created_at ⇒ Time
RFC 3339 datetime string representing the time at which the model was released.
-
#display_name ⇒ String
A human-readable name for the model.
-
#id ⇒ String
Unique model identifier.
-
#max_input_tokens ⇒ Integer?
Maximum input context window size in tokens for this model.
-
#max_tokens ⇒ Integer?
Maximum value for the
max_tokensparameter when using this model. -
#type ⇒ Symbol, :model
Object type.
Instance Method Summary collapse
-
#initialize(id:, capabilities:, created_at:, display_name:, max_input_tokens:, max_tokens:, type: :model) ⇒ void
constructor
Some parameter documentations has been truncated, see ModelInfo for more details.
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:, capabilities:, created_at:, display_name:, max_input_tokens:, max_tokens:, type: :model) ⇒ void
Some parameter documentations has been truncated, see Anthropic::Models::ModelInfo for more details.
|
|
# File 'lib/anthropic/models/model_info.rb', line 52
|
Instance Attribute Details
#capabilities ⇒ Anthropic::Models::ModelCapabilities?
Model capability information.
17 |
# File 'lib/anthropic/models/model_info.rb', line 17 required :capabilities, -> { Anthropic::ModelCapabilities }, nil?: true |
#created_at ⇒ Time
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.
24 |
# File 'lib/anthropic/models/model_info.rb', line 24 required :created_at, Time |
#display_name ⇒ String
A human-readable name for the model.
30 |
# File 'lib/anthropic/models/model_info.rb', line 30 required :display_name, String |
#id ⇒ String
Unique model identifier.
11 |
# File 'lib/anthropic/models/model_info.rb', line 11 required :id, String |
#max_input_tokens ⇒ Integer?
Maximum input context window size in tokens for this model.
36 |
# File 'lib/anthropic/models/model_info.rb', line 36 required :max_input_tokens, Integer, nil?: true |
#max_tokens ⇒ Integer?
Maximum value for the max_tokens parameter when using this model.
42 |
# File 'lib/anthropic/models/model_info.rb', line 42 required :max_tokens, Integer, nil?: true |
#type ⇒ Symbol, :model
Object type.
For Models, this is always "model".
50 |
# File 'lib/anthropic/models/model_info.rb', line 50 required :type, const: :model |