Class: Anthropic::Models::ComputerKeyToolUseBlock
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::ComputerKeyToolUseBlock
- Defined in:
- lib/anthropic/models/computer_key_tool_use_block.rb,
sig/anthropic/models/computer_key_tool_use_block.rbs
Instance Attribute Summary collapse
-
#caller_ ⇒ Anthropic::Models::DirectCaller, ...
Which party invoked the tool call: the model directly, or a server tool on its behalf.
- #id ⇒ String
-
#input ⇒ Anthropic::Models::ComputerKeyInput
Press a key or key-combination on the keyboard.
- #name ⇒ Symbol, :key
- #toolset_name ⇒ Symbol, :computer
- #type ⇒ Symbol, :tool_use
Instance Method Summary collapse
-
#initialize(id:, caller_:, input:, name: :key, toolset_name: :computer, type: :tool_use) ⇒ ComputerKeyToolUseBlock
constructor
Some parameter documentations has been truncated, see ComputerKeyToolUseBlock for more details.
- #to_hash ⇒ { id: String, caller_: Anthropic::Models::tool_use_caller, input: Anthropic::ComputerKeyInput, name: :key, toolset_name: :computer, type: :tool_use }
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(id:, caller_:, input:, name: :key, toolset_name: :computer, type: :tool_use) ⇒ ComputerKeyToolUseBlock
Some parameter documentations has been truncated, see Anthropic::Models::ComputerKeyToolUseBlock for more details.
|
|
# File 'lib/anthropic/models/computer_key_tool_use_block.rb', line 43
|
Instance Attribute Details
#caller_ ⇒ Anthropic::Models::DirectCaller, ...
Which party invoked the tool call: the model directly, or a server tool on its behalf.
16 |
# File 'lib/anthropic/models/computer_key_tool_use_block.rb', line 16 required :caller_, union: -> { Anthropic::ToolUseCaller }, api_name: :caller |
#id ⇒ String
9 |
# File 'lib/anthropic/models/computer_key_tool_use_block.rb', line 9 required :id, String |
#input ⇒ Anthropic::Models::ComputerKeyInput
Press a key or key-combination on the keyboard. Use "+" to combine modifiers with a key (e.g. "ctrl+s", "alt+Tab", "ctrl+shift+Escape"). Key names are case-insensitive; common names like "Return", "Tab", "Escape", "Up", "Down", "Left", "Right", "Home", "End", "Page_Up", "Page_Down", "Delete", "BackSpace" are supported.
26 |
# File 'lib/anthropic/models/computer_key_tool_use_block.rb', line 26 required :input, -> { Anthropic::ComputerKeyInput } |
#name ⇒ Symbol, :key
31 |
# File 'lib/anthropic/models/computer_key_tool_use_block.rb', line 31 required :name, const: :key |
#toolset_name ⇒ Symbol, :computer
36 |
# File 'lib/anthropic/models/computer_key_tool_use_block.rb', line 36 required :toolset_name, const: :computer |
#type ⇒ Symbol, :tool_use
41 |
# File 'lib/anthropic/models/computer_key_tool_use_block.rb', line 41 required :type, const: :tool_use |
Instance Method Details
#to_hash ⇒ { id: String, caller_: Anthropic::Models::tool_use_caller, input: Anthropic::ComputerKeyInput, name: :key, toolset_name: :computer, type: :tool_use }
35 36 37 38 39 40 41 42 |
# File 'sig/anthropic/models/computer_key_tool_use_block.rbs', line 35
def to_hash: -> {
id: String,
caller_: Anthropic::Models::tool_use_caller,
input: Anthropic::ComputerKeyInput,
name: :key,
toolset_name: :computer,
type: :tool_use
}
|