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

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

Overview

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:, created_at:, name:, type:, updated_at:, archived_at: nil, description: nil, metadata: nil) ⇒ Object

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

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.

Parameters:

  • id (String)

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

  • created_at (Time)

    A timestamp in RFC 3339 format

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

    A timestamp in RFC 3339 format

  • archived_at (Time, nil) (defaults to: nil)

    A timestamp in RFC 3339 format

  • description (String) (defaults to: nil)

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

  • metadata (Hash{Symbol=>String}) (defaults to: nil)

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



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

Instance Attribute Details

#archived_atTime?

A timestamp in RFC 3339 format

Returns:

  • (Time, nil)


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

optional :archived_at, Time, nil?: true

#created_atTime

A timestamp in RFC 3339 format

Returns:

  • (Time)


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

required :created_at, Time

#descriptionString?

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.

Returns:

  • (String, nil)


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

optional :description, String

#idString

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.

Returns:

  • (String)


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

required :id, String

#metadataHash{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.

Returns:

  • (Hash{Symbol=>String}, nil)


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

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

#nameString

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

Returns:

  • (String)


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

required :name, String

#typeSymbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStore::Type



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

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

#updated_atTime

A timestamp in RFC 3339 format

Returns:

  • (Time)


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

required :updated_at, Time