Class: Anthropic::Models::ToolTextEditor20250429

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/tool_text_editor_20250429.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, name: :str_replace_based_edit_tool, type: :text_editor_20250429) ⇒ Object

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

Parameters:

  • cache_control (Anthropic::Models::CacheControlEphemeral, nil) (defaults to: nil)

    Create a cache control breakpoint at this content block.

  • name (Symbol, :str_replace_based_edit_tool) (defaults to: :str_replace_based_edit_tool)

    Name of the tool.

  • type (Symbol, :text_editor_20250429) (defaults to: :text_editor_20250429)


# File 'lib/anthropic/models/tool_text_editor_20250429.rb', line 25

Instance Attribute Details

#cache_controlAnthropic::Models::CacheControlEphemeral?

Create a cache control breakpoint at this content block.



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

optional :cache_control, -> { Anthropic::CacheControlEphemeral }, 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.

Returns:

  • (Symbol, :str_replace_based_edit_tool)


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

required :name, const: :str_replace_based_edit_tool

#typeSymbol, :text_editor_20250429

Returns:

  • (Symbol, :text_editor_20250429)


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

required :type, const: :text_editor_20250429