Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource

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

Defined Under Namespace

Modules: Access

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(memory_store_id:, access: nil, description: nil, instructions: nil, mount_path: nil, name: nil, type: :memory_store) ⇒ BetaManagedAgentsMemoryStoreResource

A memory store attached to an agent session.

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

Parameters:

  • memory_store_id (String) —

    The memory store ID (memstore_...). Must belong to the caller's organization and

  • access (Symbol, Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource::Access, nil) (defaults to: nil) —

    Access mode for the mounted store. Defaults to read_write. read_only mounts

  • description (String) (defaults to: nil) —

    Description of the memory store, snapshotted at attach time. Rendered into the a

  • instructions (String, nil) (defaults to: nil) —

    Per-attachment guidance for the agent on how to use this store. Rendered into th

  • mount_path (String, nil) (defaults to: nil) —

    Filesystem path where the store is mounted in the session container, e.g. /mnt/m

  • name (String, nil) (defaults to: nil) —

    Display name of the memory store, snapshotted at attach time. Later edits to the

  • type (Symbol, :memory_store) (defaults to: :memory_store)
  • memory_store_id: (String)
  • access: (Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource::access, nil) (defaults to: nil)
  • description: (String) (defaults to: nil)
  • instructions: (String, nil) (defaults to: nil)
  • mount_path: (String, nil) (defaults to: nil)
  • name: (String, nil) (defaults to: nil)
  • type: (:memory_store) (defaults to: :memory_store)


# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb', line 57

Instance Attribute Details

#access ⇒ Symbol, ...

Access mode for the mounted store. Defaults to read_write. read_only mounts the store as a read-only filesystem.

Parameters:

  • value (Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource::access, nil)

Returns:



25
26
27
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb', line 25

optional :access,
enum: -> { Anthropic::Beta::Sessions::BetaManagedAgentsMemoryStoreResource::Access },
nil?: true

#description ⇒ String?

Description of the memory store, snapshotted at attach time. Rendered into the agent's system prompt. Empty string when the store has no description.

Parameters:

  • (String)

Returns:

  • (String, nil)


34
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb', line 34

optional :description, String

#instructions ⇒ String?

Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


41
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb', line 41

optional :instructions, String, nil?: true

#memory_store_id ⇒ String

The memory store ID (memstore_...). Must belong to the caller's organization and workspace.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb', line 13

required :memory_store_id, String

#mount_path ⇒ String?

Filesystem path where the store is mounted in the session container, e.g. /mnt/memory/user-preferences. Derived from the store's name. Output-only.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


48
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb', line 48

optional :mount_path, String, nil?: true

#name ⇒ String?

Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


55
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb', line 55

optional :name, String, nil?: true

#type ⇒ Symbol, :memory_store

Parameters:

  • value (:memory_store)

Returns:

  • (Symbol, :memory_store)


18
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb', line 18

required :type, const: :memory_store

Instance Method Details

#to_hash ⇒ { memory_store_id: String, type: :memory_store, access: Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource::access?, description: String, instructions: String?, mount_path: String?, name: String? }

Returns:

  • ({ memory_store_id: String, type: :memory_store, access: Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource::access?, description: String, instructions: String?, mount_path: String?, name: String? })


43
44
45
46
47
48
49
50
51
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbs', line 43

def to_hash: -> {
  memory_store_id: String,
  type: :memory_store,
  access: Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource::access?,
  description: String,
  instructions: String?,
  mount_path: String?,
  name: String?
}