Class: Anthropic::Models::Beta::MemoryStores::MemoryUpdateParams

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

Overview

See Also:

  • Anthropic::Resources::Beta::MemoryStores::Memories#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:, memory_id:, view: nil, content: nil, path: nil, precondition: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ MemoryUpdateParams

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

Parameters:

  • memory_store_id (String) —

    The ID of the memory store that holds the memory (memstore_...).

  • memory_id (String) —

    The ID of the memory to update (mem_...).

  • view (Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView) (defaults to: nil) —

    Whether a memory or memory_version in the response includes its content. D

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

    New UTF-8 text content for the memory. Maximum 100 kB (102,400 bytes). Omit to l

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

    The new path of the memory, which renames it. Omit it to keep the current path.

  • precondition (Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsPrecondition) (defaults to: nil) —

    The condition that the memory must meet for the update to apply. Omit it to upda

  • 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)
  • memory_id: (String)
  • view: (Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view) (defaults to: nil)
  • content: (String, nil) (defaults to: nil)
  • path: (String, nil) (defaults to: nil)
  • precondition: (Anthropic::Beta::MemoryStores::BetaManagedAgentsPrecondition) (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_stores/memory_update_params.rb', line 80

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:



67
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 67

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

#content ⇒ String?

New UTF-8 text content for the memory. Maximum 100 kB (102,400 bytes). Omit to leave the content unchanged (e.g., for a rename-only update).

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


39
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 39

optional :content, String, nil?: true

#memory_id ⇒ String

The ID of the memory to update (mem_...).

Parameters:

  • value (String)

Returns:

  • (String)


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

required :memory_id, String

#memory_store_id ⇒ String

The ID of the memory store that holds the memory (memstore_...).

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 16

required :memory_store_id, String

#path ⇒ String?

The new path of the memory, which renames it. Omit it to keep the current path.

The memory keeps its id. A path starts with / and has 1 to 20 segments. A segment can't be empty and can't be . or ... A path can't contain control characters, format characters, or the line and paragraph separators U+2028 and U+2029. It must be in Unicode Normalization Form C and at most 1,024 bytes long. Paths are case-sensitive.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :path, String, nil?: true

#precondition ⇒ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsPrecondition?

The condition that the memory must meet for the update to apply. Omit it to update unconditionally.

If the condition fails, the request fails with HTTP status 409.

Parameters:

  • (Anthropic::Beta::MemoryStores::BetaManagedAgentsPrecondition)

Returns:



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

optional :precondition, -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsPrecondition }

#view ⇒ Symbol, ...

Whether a memory or memory_version in the response includes its content. Defaults to full on retrieve operations and to basic on list, create, and update operations.

With full, list operations return at most 20 items per page.

Parameters:

  • (Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view)

Returns:



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

optional :view, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryView }

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


78
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 78

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { memory_store_id: String, memory_id: String, view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view, content: String?, path: String?, precondition: Anthropic::Beta::MemoryStores::BetaManagedAgentsPrecondition, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ memory_store_id: String, memory_id: String, view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view, content: String?, path: String?, precondition: Anthropic::Beta::MemoryStores::BetaManagedAgentsPrecondition, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


64
65
66
67
68
69
70
71
72
73
74
# File 'sig/anthropic/models/beta/memory_stores/memory_update_params.rbs', line 64

def to_hash: -> {
  memory_store_id: String,
  memory_id: String,
  view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view,
  content: String?,
  path: String?,
  precondition: Anthropic::Beta::MemoryStores::BetaManagedAgentsPrecondition,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}