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.

Defined Under Namespace

Modules: Type

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

    @option args [String] :service_account_id ID of the service account that performed the write (a svac_... value).

Returns:

Raises:

  • (ArgumentError)


65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb', line 65

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)
  when :service_account_actor
    Anthropic::Beta::MemoryStores::BetaManagedAgentsServiceAccountActor.new(**args)
  else
    raise ArgumentError, "unknown type: #{type}"
  end
end

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb', line 37

Instance Method Details

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

Returns:

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


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

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