Class: Anthropic::Models::Beta::MemoryStores::MemoryUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::MemoryStores::MemoryUpdateParams
- 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
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::Anthropic
Instance Attribute Summary collapse
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
-
#content ⇒ String?
New UTF-8 text content for the memory.
-
#memory_id ⇒ String
The ID of the memory to update (
mem_...). -
#memory_store_id ⇒ String
The ID of the memory store that holds the memory (
memstore_...). -
#path ⇒ String?
New path for the memory (a rename).
-
#precondition ⇒ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsPrecondition?
Optimistic-concurrency precondition: the update applies only if the memory's stored
content_sha256equals the supplied value. -
#view ⇒ Symbol, ...
Selects which projection of a
memoryormemory_versionthe server returns. -
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(memory_store_id:, memory_id:, view: nil, content: nil, path: nil, precondition: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ void
constructor
Some parameter documentations has been truncated, see MemoryUpdateParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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: {}) ⇒ void
Some parameter documentations has been truncated, see Anthropic::Models::Beta::MemoryStores::MemoryUpdateParams for more details.
|
|
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 80
|
Instance Attribute Details
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
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).
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_...).
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_...).
16 |
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 16 required :memory_store_id, String |
#path ⇒ String?
New path for the memory (a rename). Must start with /, contain at least one
non-empty segment, and be at most 1,024 bytes. Must not contain empty segments,
. or .. segments, control or format characters, or the Unicode line and
paragraph separators (U+2028, U+2029), and must be NFC-normalized. Paths are
case-sensitive. The memory's id is preserved across renames. Omit to leave the
path unchanged.
50 |
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 50 optional :path, String, nil?: true |
#precondition ⇒ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsPrecondition?
Optimistic-concurrency precondition: the update applies only if the memory's
stored content_sha256 equals the supplied value. On mismatch, the request
returns memory_precondition_failed_error (HTTP 409); re-read the memory and
retry against the fresh state. If the precondition fails but the stored state
already exactly matches the requested content and path, the server returns
200 instead of 409.
61 |
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 61 optional :precondition, -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsPrecondition } |
#view ⇒ Symbol, ...
Selects which projection of a memory or memory_version the server returns.
basic returns the object with content set to null; full populates
content. When omitted, the default is endpoint-specific: retrieve operations
default to full; list, create, and update operations default to basic.
Listing with view=full caps limit at 20.
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.
78 |
# File 'lib/anthropic/models/beta/memory_stores/memory_update_params.rb', line 78 optional :workspace_id, String |
Instance Method Details
#to_hash ⇒ {
64 |
# File 'sig/anthropic/models/beta/memory_stores/memory_update_params.rbs', line 64
def to_hash: -> {
|