Class: Anthropic::Models::Beta::BetaMemoryTool20250818DeleteCommand

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

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

#initializeBetaMemoryTool20250818DeleteCommand

Returns a new instance of BetaMemoryTool20250818DeleteCommand.

Parameters:

  • path: (String)
  • command: (:delete)


14
# File 'sig/anthropic/models/beta/beta_memory_tool_20250818_delete_command.rbs', line 14

def initialize: (path: String, ?command: :delete) -> void

Instance Attribute Details

#commandSymbol, :delete

Command type identifier

Parameters:

  • value (:delete)

Returns:

  • (Symbol, :delete)


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

required :command, const: :delete

#pathString

Path to the file or directory to delete

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/anthropic/models/beta/beta_memory_tool_20250818_delete_command.rb', line 17

required :path, String

Instance Method Details

#to_hash{ command: :delete, path: String }

Returns:

  • ({ command: :delete, path: String })


16
# File 'sig/anthropic/models/beta/beta_memory_tool_20250818_delete_command.rbs', line 16

def to_hash: -> { command: :delete, path: String }