Module: Anthropic::Models::ComputerToolUseBlock
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/computer_tool_use_block.rb,
sig/anthropic/models/computer_tool_use_block.rbs
Defined Under Namespace
Modules: Name
Class Method Summary collapse
-
.new(name:, **args) ⇒ Anthropic::Models::ComputerKeyToolUseBlock, ...
Creates a new instance of the variant class whose
namematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::ComputerKeyToolUseBlock, Anthropic::Models::ComputerHoldKeyToolUseBlock, Anthropic::Models::ComputerTypeToolUseBlock, Anthropic::Models::ComputerCursorPositionToolUseBlock, Anthropic::Models::ComputerMouseMoveToolUseBlock, Anthropic::Models::ComputerLeftMouseDownToolUseBlock, Anthropic::Models::ComputerLeftMouseUpToolUseBlock, Anthropic::Models::ComputerLeftClickToolUseBlock, Anthropic::Models::ComputerLeftClickDragToolUseBlock, Anthropic::Models::ComputerRightClickToolUseBlock, Anthropic::Models::ComputerMiddleClickToolUseBlock, Anthropic::Models::ComputerDoubleClickToolUseBlock, Anthropic::Models::ComputerTripleClickToolUseBlock, Anthropic::Models::ComputerScrollToolUseBlock, Anthropic::Models::ComputerWaitToolUseBlock, Anthropic::Models::ComputerScreenshotToolUseBlock, Anthropic::Models::ComputerZoomToolUseBlock)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerKeyToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerHoldKeyToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerTypeToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerCursorPositionToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerMouseMoveToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerLeftMouseDownToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerLeftMouseUpToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerLeftClickToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerLeftClickDragToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerRightClickToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerMiddleClickToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerDoubleClickToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerTripleClickToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerScrollToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerWaitToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerScreenshotToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::ComputerZoomToolUseBlock .new(name:, id:, caller_:, input:, toolset_name:, type:) ⇒ Anthropic::Models::computer_tool_use_block
Creates a new instance of the variant class whose name matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::ComputerToolUseBlock for more details.
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/anthropic/models/computer_tool_use_block.rb', line 94 def self.new(name:, **args) case name.to_sym when :key Anthropic::ComputerKeyToolUseBlock.new(**args) when :hold_key Anthropic::ComputerHoldKeyToolUseBlock.new(**args) when :type Anthropic::ComputerTypeToolUseBlock.new(**args) when :cursor_position Anthropic::ComputerCursorPositionToolUseBlock.new(**args) when :mouse_move Anthropic::ComputerMouseMoveToolUseBlock.new(**args) when :left_mouse_down Anthropic::ComputerLeftMouseDownToolUseBlock.new(**args) when :left_mouse_up Anthropic::ComputerLeftMouseUpToolUseBlock.new(**args) when :left_click Anthropic::ComputerLeftClickToolUseBlock.new(**args) when :left_click_drag Anthropic::ComputerLeftClickDragToolUseBlock.new(**args) when :right_click Anthropic::ComputerRightClickToolUseBlock.new(**args) when :middle_click Anthropic::ComputerMiddleClickToolUseBlock.new(**args) when :double_click Anthropic::ComputerDoubleClickToolUseBlock.new(**args) when :triple_click Anthropic::ComputerTripleClickToolUseBlock.new(**args) when :scroll Anthropic::ComputerScrollToolUseBlock.new(**args) when :wait Anthropic::ComputerWaitToolUseBlock.new(**args) when :screenshot Anthropic::ComputerScreenshotToolUseBlock.new(**args) when :zoom Anthropic::ComputerZoomToolUseBlock.new(**args) else raise ArgumentError, "unknown name: #{name}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/computer_tool_use_block.rb', line 65
|
.variants ⇒ Array(Anthropic::Models::ComputerKeyToolUseBlock, Anthropic::Models::ComputerHoldKeyToolUseBlock, Anthropic::Models::ComputerTypeToolUseBlock, Anthropic::Models::ComputerCursorPositionToolUseBlock, Anthropic::Models::ComputerMouseMoveToolUseBlock, Anthropic::Models::ComputerLeftMouseDownToolUseBlock, Anthropic::Models::ComputerLeftMouseUpToolUseBlock, Anthropic::Models::ComputerLeftClickToolUseBlock, Anthropic::Models::ComputerLeftClickDragToolUseBlock, Anthropic::Models::ComputerRightClickToolUseBlock, Anthropic::Models::ComputerMiddleClickToolUseBlock, Anthropic::Models::ComputerDoubleClickToolUseBlock, Anthropic::Models::ComputerTripleClickToolUseBlock, Anthropic::Models::ComputerScrollToolUseBlock, Anthropic::Models::ComputerWaitToolUseBlock, Anthropic::Models::ComputerScreenshotToolUseBlock, Anthropic::Models::ComputerZoomToolUseBlock)
|
|
# File 'lib/anthropic/models/computer_tool_use_block.rb', line 69
|