Class: Anthropic::Models::TextEditorCodeExecutionStrReplaceResultBlock

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/text_editor_code_execution_str_replace_result_block.rb

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(lines:, new_lines:, new_start:, old_lines:, old_start:, type: :text_editor_code_execution_str_replace_result) ⇒ void

Parameters:

  • lines (Array<String>, nil)
  • new_lines (Integer, nil)
  • new_start (Integer, nil)
  • old_lines (Integer, nil)
  • old_start (Integer, nil)
  • type (Symbol, :text_editor_code_execution_str_replace_result) (defaults to: :text_editor_code_execution_str_replace_result)


# File 'lib/anthropic/models/text_editor_code_execution_str_replace_result_block.rb', line 36


Instance Attribute Details

#linesArray<String>?

Returns:

  • (Array<String>, nil)


9
# File 'lib/anthropic/models/text_editor_code_execution_str_replace_result_block.rb', line 9

required :lines, Anthropic::Internal::Type::ArrayOf[String], nil?: true

#new_linesInteger?

Returns:

  • (Integer, nil)


14
# File 'lib/anthropic/models/text_editor_code_execution_str_replace_result_block.rb', line 14

required :new_lines, Integer, nil?: true

#new_startInteger?

Returns:

  • (Integer, nil)


19
# File 'lib/anthropic/models/text_editor_code_execution_str_replace_result_block.rb', line 19

required :new_start, Integer, nil?: true

#old_linesInteger?

Returns:

  • (Integer, nil)


24
# File 'lib/anthropic/models/text_editor_code_execution_str_replace_result_block.rb', line 24

required :old_lines, Integer, nil?: true

#old_startInteger?

Returns:

  • (Integer, nil)


29
# File 'lib/anthropic/models/text_editor_code_execution_str_replace_result_block.rb', line 29

required :old_start, Integer, nil?: true

#typeSymbol, :text_editor_code_execution_str_replace_result

Returns:

  • (Symbol, :text_editor_code_execution_str_replace_result)


34
# File 'lib/anthropic/models/text_editor_code_execution_str_replace_result_block.rb', line 34

required :type, const: :text_editor_code_execution_str_replace_result