Class: Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsContentSha256Precondition

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb

Defined Under Namespace

Modules: Type

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(type:, content_sha256: nil) ⇒ Object

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

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.

Parameters:



# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb', line 23

Instance Attribute Details

#content_sha256String?

Expected ‘content_sha256` of the stored memory (64 lowercase hexadecimal characters). Typically the `content_sha256` returned by a prior read or list call. Because the server applies no content normalization, clients can also compute this locally as the SHA-256 of the UTF-8 content bytes.

Returns:

  • (String, nil)


21
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb', line 21

optional :content_sha256, String

#typeSymbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsContentSha256Precondition::Type



11
12
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb', line 11

required :type,
enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsContentSha256Precondition::Type }