Module: Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsActor

Extended by:
Internal::Type::Union
Defined in:
lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb,
sig/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbs

Overview

Identifies who performed a write or redact operation. Captured at write time on the memory_version row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the Sessions API.

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.new(type:, **args) ⇒ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsSessionActor, ...

Creates a new instance of the variant class whose type matches the given value, passing the remaining arguments to its constructor.

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

Parameters:

  • type (Symbol, String)
  • args (Hash{Symbol=>Object})

    Attributes for the chosen variant.

    @option args [String] :session_id ID of the session that performed the write (a sesn_... value). Look up the ses

    @option args [String] :api_key_id ID of the API key that performed the write. This identifies the key, not the sec

    @option args [String] :user_id ID of the user who performed the write (a user_... value).

Returns:

Raises:

  • (ArgumentError)


48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb', line 48

def self.new(type:, **args)
  case type.to_sym
  when :session_actor
    Anthropic::Beta::MemoryStores::BetaManagedAgentsSessionActor.new(**args)
  when :api_actor
    Anthropic::Beta::MemoryStores::BetaManagedAgentsAPIActor.new(**args)
  when :user_actor
    Anthropic::Beta::MemoryStores::BetaManagedAgentsUserActor.new(**args)
  else
    raise ArgumentError, "unknown type: #{type}"
  end
end

Instance Method Details

#self?.variants::Array[Anthropic::Models::Beta::MemoryStores::beta_managed_agents_actor]

Returns:

  • (::Array[Anthropic::Models::Beta::MemoryStores::beta_managed_agents_actor])


13
# File 'sig/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbs', line 13

def self?.variants: -> ::Array[Anthropic::Models::Beta::MemoryStores::beta_managed_agents_actor]