Class: Anthropic::Models::Beta::MemoryStores::MemoryDeleteParams

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_delete_params.rb,
sig/anthropic/models/beta/memory_stores/memory_delete_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::MemoryStores::Memories#delete

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

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

Parameters:

  • memory_store_id (String) —

    The ID of the memory store that holds the memory (memstore_...).

  • memory_id (String) —

    The ID of the memory to delete (mem_...).

  • expected_content_sha256 (String) (defaults to: nil) —

    Delete the memory only if its current content_sha256 equals this value, given

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

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

  • workspace_id (String) (defaults to: nil) —

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/anthropic/models/beta/memory_stores/memory_delete_params.rb', line 51

Instance Attribute Details

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

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

Returns:



38
# File 'lib/anthropic/models/beta/memory_stores/memory_delete_params.rb', line 38

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

#expected_content_sha256 ⇒ String?

Delete the memory only if its current content_sha256 equals this value, given as 64 lowercase hexadecimal characters. Omit it to delete unconditionally.

If the hashes differ, the request fails with HTTP status 409 and nothing is deleted.

Parameters:

  • (String)

Returns:

  • (String, nil)


32
# File 'lib/anthropic/models/beta/memory_stores/memory_delete_params.rb', line 32

optional :expected_content_sha256, String

#memory_id ⇒ String

The ID of the memory to delete (mem_...).

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/anthropic/models/beta/memory_stores/memory_delete_params.rb', line 22

required :memory_id, String

#memory_store_id ⇒ String

The ID of the memory store that holds the memory (memstore_...).

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/beta/memory_stores/memory_delete_params.rb', line 16

required :memory_store_id, String

#workspace_id ⇒ String?

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


49
# File 'lib/anthropic/models/beta/memory_stores/memory_delete_params.rb', line 49

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


46
# File 'sig/anthropic/models/beta/memory_stores/memory_delete_params.rbs', line 46

def to_hash: -> {