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

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Anthropic

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, request_options: {}) ⇒ Object

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

Parameters:



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

Instance Attribute Details

#betasArray<String, Symbol, Anthropic::Models::AnthropicBeta>?

Optional header to specify the beta version(s) you want to use.

Returns:



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

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

#contentString?

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)


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

optional :content, String, nil?: true

#memory_idString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :memory_id, String

#memory_store_idString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :memory_store_id, String

#pathString?

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, and must be NFC-normalized. Paths are case-sensitive. The memory's id is preserved across renames. Omit to leave the path unchanged.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :path, String, nil?: true

#preconditionAnthropic::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.



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

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

#viewSymbol, ...

Query parameter for view



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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


58
# File 'sig/anthropic/models/beta/memory_stores/memory_update_params.rbs', line 58

def to_hash: -> {