Class: Anthropic::Models::Beta::BetaBrowserRightClickToolUseBlock
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaBrowserRightClickToolUseBlock
- Defined in:
- lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb,
sig/anthropic/models/beta/beta_browser_right_click_tool_use_block.rbs
Instance Attribute Summary collapse
-
#caller_ ⇒ Anthropic::Models::Beta::BetaDirectCaller, ...
Which party invoked the tool call: the model directly, or a server tool on its behalf.
- #id ⇒ String
-
#input ⇒ Anthropic::Models::Beta::BetaBrowserRightClickInput
Right-click at a viewport coordinate or on an element by reference.
- #name ⇒ Symbol, :right_click
- #toolset_name ⇒ Symbol, :browser
- #type ⇒ Symbol, :tool_use
Instance Method Summary collapse
-
#initialize ⇒ BetaBrowserRightClickToolUseBlock
constructor
A new instance of BetaBrowserRightClickToolUseBlock.
- #to_hash ⇒ { id: String, input: Anthropic::Beta::BetaBrowserRightClickInput, name: :right_click, toolset_name: :browser, type: :tool_use, caller_: Anthropic::Models::Beta::beta_tool_use_caller }
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 ⇒ BetaBrowserRightClickToolUseBlock
Returns a new instance of BetaBrowserRightClickToolUseBlock.
33 34 35 36 37 38 39 40 |
# File 'sig/anthropic/models/beta/beta_browser_right_click_tool_use_block.rbs', line 33
def initialize: (
id: String,
input: Anthropic::Beta::BetaBrowserRightClickInput,
?caller_: Anthropic::Models::Beta::beta_tool_use_caller,
?name: :right_click,
?toolset_name: :browser,
?type: :tool_use
) -> void
|
Instance Attribute Details
#caller_ ⇒ Anthropic::Models::Beta::BetaDirectCaller, ...
Which party invoked the tool call: the model directly, or a server tool on its behalf.
38 |
# File 'lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb', line 38 optional :caller_, union: -> { Anthropic::Beta::BetaToolUseCaller }, api_name: :caller |
#id ⇒ String
10 |
# File 'lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb', line 10 required :id, String |
#input ⇒ Anthropic::Models::Beta::BetaBrowserRightClickInput
Right-click at a viewport coordinate or on an element by reference.
16 |
# File 'lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb', line 16 required :input, -> { Anthropic::Beta::BetaBrowserRightClickInput } |
#name ⇒ Symbol, :right_click
21 |
# File 'lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb', line 21 required :name, const: :right_click |
#toolset_name ⇒ Symbol, :browser
26 |
# File 'lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb', line 26 required :toolset_name, const: :browser |
#type ⇒ Symbol, :tool_use
31 |
# File 'lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb', line 31 required :type, const: :tool_use |
Instance Method Details
#to_hash ⇒ { id: String, input: Anthropic::Beta::BetaBrowserRightClickInput, name: :right_click, toolset_name: :browser, type: :tool_use, caller_: Anthropic::Models::Beta::beta_tool_use_caller }
42 43 44 45 46 47 48 49 |
# File 'sig/anthropic/models/beta/beta_browser_right_click_tool_use_block.rbs', line 42
def to_hash: -> {
id: String,
input: Anthropic::Beta::BetaBrowserRightClickInput,
name: :right_click,
toolset_name: :browser,
type: :tool_use,
caller_: Anthropic::Models::Beta::beta_tool_use_caller
}
|