Class: Cadenya::Models::ModelSpecCapabilityTopP
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::ModelSpecCapabilityTopP
- Defined in:
- lib/cadenya/models/model_spec_capability_top_p.rb,
sig/cadenya/models/model_spec_capability_top_p.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#top_p ⇒ Object
Nucleus sampling (ModelConfig.top_p).
- #type ⇒ Symbol, Cadenya::Models::ModelSpecCapabilityTopP::Type
Instance Method Summary collapse
- #initialize(top_p:, type:) ⇒ Object constructor
- #to_hash ⇒ {
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(top_p:, type:) ⇒ Object
|
|
# File 'lib/cadenya/models/model_spec_capability_top_p.rb', line 17
|
Instance Attribute Details
#top_p ⇒ Object
Nucleus sampling (ModelConfig.top_p).
10 |
# File 'lib/cadenya/models/model_spec_capability_top_p.rb', line 10 required :top_p, Cadenya::Internal::Type::Unknown, api_name: :topP |
#type ⇒ Symbol, Cadenya::Models::ModelSpecCapabilityTopP::Type
15 |
# File 'lib/cadenya/models/model_spec_capability_top_p.rb', line 15 required :type, enum: -> { Cadenya::ModelSpecCapabilityTopP::Type } |
Instance Method Details
#to_hash ⇒ {
16 |
# File 'sig/cadenya/models/model_spec_capability_top_p.rbs', line 16
def to_hash: -> {
|