Class: Anthropic::Models::Beta::MemoryStoreUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/memory_store_update_params.rb,
sig/anthropic/models/beta/memory_store_update_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::MemoryStores#update

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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:, description: nil, metadata: nil, name: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ MemoryStoreUpdateParams

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

Parameters:

  • memory_store_id (String) —

    The ID of the memory store to update (memstore_...).

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

    New description for the store, up to 1,024 characters. Pass an empty string to c

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

    Changes to apply to the memory store's metadata. Keys you leave out keep their v

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

    The new name of the memory store, 1 to 255 characters long, without control char

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    This endpoint is in beta: requests must send agent-memory-2026-07-22 or

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

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • memory_store_id: (String)
  • description: (String, nil) (defaults to: nil)
  • metadata: (::Hash[Symbol, String?], nil) (defaults to: nil)
  • name: (String, nil) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


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

Instance Attribute Details

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

This endpoint is in beta: requests must send agent-memory-2026-07-22 or managed-agents-2026-04-01 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



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

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#description ⇒ String?

New description for the store, up to 1,024 characters. Pass an empty string to clear it.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


24
# File 'lib/anthropic/models/beta/memory_store_update_params.rb', line 24

optional :description, String, nil?: true

#memory_store_id ⇒ String

The ID of the memory store to update (memstore_...).

The request fails with HTTP status 400 if the store is archived.

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/anthropic/models/beta/memory_store_update_params.rb', line 17

required :memory_store_id, String

#metadata ⇒ Hash{Symbol=>String, nil}?

Changes to apply to the memory store's metadata. Keys you leave out keep their values.

Set a key to a string to add or replace it, or to null to remove it. After the change, the metadata can hold at most 16 key-value pairs. Keys are 1 to 64 characters long and values at most 512 characters.

Parameters:

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

Returns:

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


35
# File 'lib/anthropic/models/beta/memory_store_update_params.rb', line 35

optional :metadata, Anthropic::Internal::Type::HashOf[String, nil?: true], nil?: true

#name ⇒ String?

The new name of the memory store, 1 to 255 characters long, without control characters.

Sessions created after the change use the new name for the store's directory under /mnt/memory/.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


45
# File 'lib/anthropic/models/beta/memory_store_update_params.rb', line 45

optional :name, String, nil?: true

#workspace_id ⇒ String?

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { memory_store_id: String, description: String?, metadata: ::Hash[Symbol, String?]?, name: String?, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ memory_store_id: String, description: String?, metadata: ::Hash[Symbol, String?]?, name: String?, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


47
48
49
50
51
52
53
54
55
# File 'sig/anthropic/models/beta/memory_store_update_params.rbs', line 47

def to_hash: -> {
  memory_store_id: String,
  description: String?,
  metadata: ::Hash[Symbol, String?]?,
  name: String?,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}