Class: Anthropic::Models::Beta::BetaOutputBehaviorUpdateExisting

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

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 ⇒ BetaOutputBehaviorUpdateExisting

Returns a new instance of BetaOutputBehaviorUpdateExisting.

Parameters:

  • memory_store_id: (String)
  • type: (:update_existing)


14
15
16
17
# File 'sig/anthropic/models/beta/beta_output_behavior_update_existing.rbs', line 14

def initialize: (
  memory_store_id: String,
  ?type: :update_existing
) -> void

Instance Attribute Details

#memory_store_id ⇒ String

The ID of the memory store for the dream to write its result to (memstore_...). It must be the memory store in the memory_store entry of inputs.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/beta_output_behavior_update_existing.rb', line 13

required :memory_store_id, String

#type ⇒ Symbol, :update_existing

Parameters:

  • value (:update_existing)

Returns:

  • (Symbol, :update_existing)


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

required :type, const: :update_existing

Instance Method Details

#to_hash ⇒ { memory_store_id: String, type: :update_existing }

Returns:

  • ({ memory_store_id: String, type: :update_existing })


19
# File 'sig/anthropic/models/beta/beta_output_behavior_update_existing.rbs', line 19

def to_hash: -> { memory_store_id: String, type: :update_existing }