Class: Anthropic::Models::Beta::BetaToolTextEditor20250429

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

Defined Under Namespace

Modules: AllowedCaller

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Anthropic::Internal::Type::BaseModel

Instance Attribute Details

#allowed_callersArray<Symbol, Anthropic::Models::Beta::BetaToolTextEditor20250429::AllowedCaller>?



23
24
# File 'lib/anthropic/models/beta/beta_tool_text_editor_20250429.rb', line 23

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

#cache_controlAnthropic::Models::Beta::BetaCacheControlEphemeral?

Create a cache control breakpoint at this content block.



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

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



37
# File 'lib/anthropic/models/beta/beta_tool_text_editor_20250429.rb', line 37

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

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



42
43
# File 'lib/anthropic/models/beta/beta_tool_text_editor_20250429.rb', line 42

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

#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.



13
# File 'lib/anthropic/models/beta/beta_tool_text_editor_20250429.rb', line 13

required :name, const: :str_replace_based_edit_tool

#strictBoolean?



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

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

#typeSymbol, :text_editor_20250429



18
# File 'lib/anthropic/models/beta/beta_tool_text_editor_20250429.rb', line 18

required :type, const: :text_editor_20250429