Class: Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsPrecondition

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rb,
sig/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbs

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::BetaManagedAgentsPrecondition 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_precondition.rb', line 22

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.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :content_sha256, String

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

Parameters:

  • value (Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsPrecondition::type_)

Returns:



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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


23
# File 'sig/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbs', line 23

def to_hash: -> {