Class: Anthropic::Models::ToolTextEditor20250728

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/tool_text_editor_20250728.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(cache_control: nil, max_characters: nil, name: :str_replace_based_edit_tool, type: :text_editor_20250728) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::ToolTextEditor20250728 for more details.



# File 'lib/anthropic/models/tool_text_editor_20250728.rb', line 32


Instance Attribute Details

#cache_controlAnthropic::Models::CacheControlEphemeral?

Create a cache control breakpoint at this content block.



23
# File 'lib/anthropic/models/tool_text_editor_20250728.rb', line 23

optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true

#max_charactersInteger?

Maximum number of characters to display when viewing a file. If not specified, defaults to displaying the full file.



30
# File 'lib/anthropic/models/tool_text_editor_20250728.rb', line 30

optional :max_characters, Integer, nil?: true

#nameSymbol, :str_replace_based_edit_tool

Name of the tool.

This is how the tool will be called by the model and in tool_use blocks.



12
# File 'lib/anthropic/models/tool_text_editor_20250728.rb', line 12

required :name, const: :str_replace_based_edit_tool

#typeSymbol, :text_editor_20250728



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

required :type, const: :text_editor_20250728