Class: Anthropic::Models::Beta::BetaToolComputerUse20241022

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_tool_computer_use_20241022.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::BetaToolComputerUse20241022::AllowedCaller>?



35
36
# File 'lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb', line 35

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

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

Create a cache control breakpoint at this content block.



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

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.



49
# File 'lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb', line 49

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

#display_height_pxInteger

The height of the display in pixels.



11
# File 'lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb', line 11

required :display_height_px, Integer

#display_numberInteger?

The X11 display number (e.g. 0, 1) for the display.



55
# File 'lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb', line 55

optional :display_number, Integer, nil?: true

#display_width_pxInteger

The width of the display in pixels.



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

required :display_width_px, Integer

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



60
61
# File 'lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb', line 60

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

#nameSymbol, :computer

Name of the tool.

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



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

required :name, const: :computer

#strictBoolean?



66
# File 'lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb', line 66

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

#typeSymbol, :computer_20241022



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

required :type, const: :computer_20241022