Class: Anthropic::Models::Beta::BetaDreamSessionsInput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_dream_sessions_input.rb,
sig/anthropic/models/beta/beta_dream_sessions_input.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 ⇒ BetaDreamSessionsInput

Returns a new instance of BetaDreamSessionsInput.

Parameters:

  • session_ids: (::Array[String])
  • type: (:sessions)


14
# File 'sig/anthropic/models/beta/beta_dream_sessions_input.rbs', line 14

def initialize: (session_ids: ::Array[String], ?type: :sessions) -> void

Instance Attribute Details

#session_ids ⇒ Array<String>

The IDs of the sessions whose transcripts the dream reads (sesn_...).

Give 1 to 100 IDs, with no duplicates. Each session must be in the same workspace as the dream. Responses list the IDs in sorted order.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


14
# File 'lib/anthropic/models/beta/beta_dream_sessions_input.rb', line 14

required :session_ids, Anthropic::Internal::Type::ArrayOf[String]

#type ⇒ Symbol, :sessions

Parameters:

  • value (:sessions)

Returns:

  • (Symbol, :sessions)


19
# File 'lib/anthropic/models/beta/beta_dream_sessions_input.rb', line 19

required :type, const: :sessions

Instance Method Details

#to_hash ⇒ { session_ids: ::Array[String], type: :sessions }

Returns:

  • ({ session_ids: ::Array[String], type: :sessions })


16
# File 'sig/anthropic/models/beta/beta_dream_sessions_input.rbs', line 16

def to_hash: -> { session_ids: ::Array[String], type: :sessions }