Class: Anthropic::Models::ToolTextEditor20250124

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

Defined Under Namespace

Modules: AllowedCaller

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(allowed_callers: nil, cache_control: nil, defer_loading: nil, input_examples: nil, strict: nil, name: :str_replace_editor, type: :text_editor_20250124) ⇒ void

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

Parameters:

  • (defaults to: nil)
  • (defaults to: nil)

    Create a cache control breakpoint at this content block.

  • (defaults to: nil)

    If true, tool will not be included in initial system prompt. Only loaded when re

  • (defaults to: nil)
  • (defaults to: nil)

    When true, guarantees schema validation on tool names and inputs

  • (defaults to: :str_replace_editor)

    Name of the tool.

  • (defaults to: :text_editor_20250124)


# File 'lib/anthropic/models/tool_text_editor_20250124.rb', line 50


Instance Attribute Details

#allowed_callersArray<Symbol, Anthropic::Models::ToolTextEditor20250124::AllowedCaller>?

Returns:



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

optional :allowed_callers,
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::ToolTextEditor20250124::AllowedCaller] }

#cache_controlAnthropic::Models::CacheControlEphemeral?

Create a cache control breakpoint at this content block.

Returns:



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

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

#defer_loadingBoolean?

If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.

Returns:



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

optional :defer_loading, Anthropic::Internal::Type::Boolean

#input_examplesArray<Hash{Symbol=>Object}>?

Returns:



41
42
# File 'lib/anthropic/models/tool_text_editor_20250124.rb', line 41

optional :input_examples,
Anthropic::Internal::Type::ArrayOf[Anthropic::Internal::Type::HashOf[Anthropic::Internal::Type::Unknown]]

#nameSymbol, :str_replace_editor

Name of the tool.

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

Returns:



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

required :name, const: :str_replace_editor

#strictBoolean?

When true, guarantees schema validation on tool names and inputs

Returns:



48
# File 'lib/anthropic/models/tool_text_editor_20250124.rb', line 48

optional :strict, Anthropic::Internal::Type::Boolean

#typeSymbol, :text_editor_20250124

Returns:



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

required :type, const: :text_editor_20250124