Class: Anthropic::Models::Beta::BetaToolComputerUse20250124

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

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

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

Create a cache control breakpoint at this content block.



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

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

#display_height_pxInteger

The height of the display in pixels.

Returns:

  • (Integer)


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

required :display_height_px, Integer

#display_numberInteger?

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

Returns:

  • (Integer, nil)


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

optional :display_number, Integer, nil?: true

#display_width_pxInteger

The width of the display in pixels.

Returns:

  • (Integer)


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

required :display_width_px, Integer

#nameSymbol, :computer

Name of the tool.

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

Returns:

  • (Symbol, :computer)


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

required :name, const: :computer

#strictBoolean?

Returns:



47
# File 'lib/anthropic/models/beta/beta_tool_computer_use_20250124.rb', line 47

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

#typeSymbol, :computer_20250124

Returns:

  • (Symbol, :computer_20250124)


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

required :type, const: :computer_20250124