Class: Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictError

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb,
sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.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:, conflicting_memory_id: nil, conflicting_path: nil, message: nil) ⇒ void

The error returned with HTTP status 409 when a create or rename targets a path that another memory uses, or a path that overlaps another memory's path.

Two paths overlap when one is an ancestor of the other, such as /notes and /notes/todo.md. To free the path, rename or delete the memory that conflicting_memory_id references, then retry. To change that memory instead of creating a new one, update it.

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

Parameters:

  • type (Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPathConflictError::Type)
  • conflicting_memory_id (String) (defaults to: nil)

    The ID of the memory that blocked the write (mem_...), or an empty string if t

  • conflicting_path (String) (defaults to: nil)

    The path that blocked the write: the requested path, or the path of a memory tha

  • message (String) (defaults to: nil)

    A human-readable explanation of the conflict. To handle the error in code, use `



# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb', line 36

Instance Attribute Details

#conflicting_memory_idString?

The ID of the memory that blocked the write (mem_...), or an empty string if that memory can't be identified.

Retry the request when it is empty.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :conflicting_memory_id, String

#conflicting_pathString?

The path that blocked the write: the requested path, or the path of a memory that is an ancestor or descendant of it.

Parameters:

  • (String)

Returns:

  • (String, nil)


27
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb', line 27

optional :conflicting_path, String

#messageString?

A human-readable explanation of the conflict. To handle the error in code, use conflicting_path and conflicting_memory_id instead.

Parameters:

  • (String)

Returns:

  • (String, nil)


34
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb', line 34

optional :message, String

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

Parameters:

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

Returns:



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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


35
# File 'sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbs', line 35

def to_hash: -> {