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) ⇒ BetaDreamModelConfig

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) —

    How fast the model generates output for the dream. Always standard.

  • id: (String)
  • speed: (Anthropic::Models::Beta::BetaDreamModelConfig::speed) (defaults to: nil)


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

Instance Attribute Details

#id ⇒ String

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

#speed ⇒ Symbol, ...

How fast the model generates output for the dream. Always standard.

Parameters:

  • (Anthropic::Models::Beta::BetaDreamModelConfig::speed)

Returns:



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

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

Instance Method Details

#to_hash ⇒ { id: String, speed: Anthropic::Models::Beta::BetaDreamModelConfig::speed }

Returns:

  • ({ id: String, speed: Anthropic::Models::Beta::BetaDreamModelConfig::speed })


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

def to_hash: -> {
  id: String,
  speed: Anthropic::Models::Beta::BetaDreamModelConfig::speed
}