Class: Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsSessionActor

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rb,
sig/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.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(session_id:, type: :session_actor) ⇒ BetaManagedAgentsSessionActor

An agent acting during a session, for example through the session's mounted filesystem. It names the session itself, not the user or API key that started the session.

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

Parameters:

  • session_id (String) —

    ID of the session (a sesn_... value). Look up the session via [Retrieve a sess

  • type (Symbol, :session_actor) (defaults to: :session_actor)
  • session_id: (String)
  • type: (:session_actor) (defaults to: :session_actor)


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

Instance Attribute Details

#session_id ⇒ String

ID of the session (a sesn_... value). Look up the session via Retrieve a session for further provenance.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :session_id, String

#type ⇒ Symbol, :session_actor

Parameters:

  • value (:session_actor)

Returns:

  • (Symbol, :session_actor)


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

required :type, const: :session_actor

Instance Method Details

#to_hash ⇒ { session_id: String, type: :session_actor }

Returns:

  • ({ session_id: String, type: :session_actor })


15
# File 'sig/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbs', line 15

def to_hash: -> { session_id: String, type: :session_actor }