Class: Anthropic::Models::Beta::BetaManagedAgentsMemoryStore

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

Overview

See Also:

  • Anthropic::Resources::Beta::MemoryStores#create

Defined Under Namespace

Modules: Type

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(id:, archived_at:, created_at:, description:, metadata:, name:, type:, updated_at:) ⇒ void

A memory_store: a named container for agent memories, scoped to a workspace. Attach a store to a session via resources[] to mount it as a directory the agent can read and write.

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

Parameters:

  • id (String) —

    Unique identifier for the memory store (a memstore_... tagged ID). Use this wh

  • archived_at (Time, nil) —

    Timestamp when the store was archived, or null if active. Set once and never c

  • created_at (Time) —

    Timestamp when the store was created.

  • description (String) —

    Free-text description of what the store contains, up to 1024 characters. Include

  • metadata (Hash{Symbol=>String}) —

    Arbitrary key-value tags for your own bookkeeping (such as the end user a store

  • name (String) —

    Human-readable name for the store. 1–255 characters. The store's mount-path slug

  • type (Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStore::Type)
  • updated_at (Time) —

    Timestamp when the store's name, description, or metadata was last modifie



# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 65

Instance Attribute Details

#archived_at ⇒ Time?

Timestamp when the store was archived, or null if active. Set once and never cleared; archiving is one-way. Archived stores are read-only and cannot be attached to new sessions.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


22
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 22

required :archived_at, Time, nil?: true

#created_at ⇒ Time

Timestamp when the store was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


28
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 28

required :created_at, Time

#description ⇒ String

Free-text description of what the store contains, up to 1024 characters. Included in the agent's system prompt when the store is attached, so word it to be useful to the agent. Empty string when unset.

Parameters:

  • value (String)

Returns:

  • (String)


36
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 36

required :description, String

#id ⇒ String

Unique identifier for the memory store (a memstore_... tagged ID). Use this when attaching the store to a session, or in the {memory_store_id} path parameter of subsequent calls.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#metadata ⇒ Hash{Symbol=>String}

Arbitrary key-value tags for your own bookkeeping (such as the end user a store belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters. Returned on retrieve/list but not filterable.

Parameters:

  • value (::Hash[Symbol, String])

Returns:

  • (Hash{Symbol=>String})


44
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 44

required :metadata, Anthropic::Internal::Type::HashOf[String]

#name ⇒ String

Human-readable name for the store. 1–255 characters. The store's mount-path slug under /mnt/memory/ is derived from this name.

Parameters:

  • value (String)

Returns:

  • (String)


51
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 51

required :name, String

#type ⇒ Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStore::Type

Parameters:

  • value (Anthropic::Models::Beta::BetaManagedAgentsMemoryStore::type_)

Returns:



56
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 56

required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsMemoryStore::Type }

#updated_at ⇒ Time

Timestamp when the store's name, description, or metadata was last modified. Memory writes inside the store do not advance this.

Parameters:

  • value (Time)

Returns:

  • (Time)


63
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 63

required :updated_at, Time

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


46
# File 'sig/anthropic/models/beta/beta_managed_agents_memory_store.rbs', line 46

def to_hash: -> {