Class: Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedError
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedError
- Defined in:
- lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb,
sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#message ⇒ String?
A human-readable explanation of why the precondition failed.
- #type ⇒ Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedError::Type
Instance Method Summary collapse
-
#initialize(type:, message: nil) ⇒ void
constructor
The error returned with HTTP status 409 when a request's precondition doesn't hold for the memory's current state, such as
preconditionon an update orexpected_content_sha256on a delete. - #to_hash ⇒ {
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:, message: nil) ⇒ void
The error returned with HTTP status 409 when a request's precondition doesn't
hold for the memory's current state, such as precondition on an update or
expected_content_sha256 on a delete.
The error doesn't include the memory's current state. Retrieve the memory to see
its current content and content_sha256 before you retry.
See the memory guide to learn more about safe content edits with content hash preconditions.
|
|
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb', line 20
|
Instance Attribute Details
#message ⇒ String?
A human-readable explanation of why the precondition failed.
18 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb', line 18 optional :message, String |
#type ⇒ Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedError::Type
11 12 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb', line 11 required :type, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedError::Type } |
Instance Method Details
#to_hash ⇒ {
23 |
# File 'sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs', line 23
def to_hash: -> {
|