Class: Anthropic::Models::Beta::BetaDreamModelConfig

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

Defined Under Namespace

Modules: Speed

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:, speed: nil) ⇒ void

The model that runs a dream, from the request that created it.

The dream uses this model for all of its work. The response always gives the model as an object, even if the request gave only a model ID.

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

Parameters:

  • id (String)

    The ID of the model that runs the dream, as given in the request that created it

  • speed (Symbol, Anthropic::Models::Beta::BetaDreamModelConfig::Speed) (defaults to: nil)

    Inference speed mode. fast provides significantly faster output token generati



# File 'lib/anthropic/models/beta/beta_dream_model_config.rb', line 22

Instance Attribute Details

#idString

The ID of the model that runs the dream, as given in the request that created it.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#speedSymbol, ...

Inference speed mode. fast provides significantly faster output token generation at premium pricing. Not all models support fast; invalid combinations are rejected at create time.



20
# File 'lib/anthropic/models/beta/beta_dream_model_config.rb', line 20

optional :speed, enum: -> { Anthropic::Beta::BetaDreamModelConfig::Speed }

Instance Method Details

#to_hash{

Returns:

  • ({)


26
# File 'sig/anthropic/models/beta/beta_dream_model_config.rbs', line 26

def to_hash: -> {