Class: Anthropic::Models::BrowserScrollToolUseBlock
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::BrowserScrollToolUseBlock
- Defined in:
- lib/anthropic/models/browser_scroll_tool_use_block.rb,
sig/anthropic/models/browser_scroll_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::BrowserScrollInput
Scroll at a viewport position.
- #name ⇒ Symbol, :scroll
- #toolset_name ⇒ Symbol, :browser
- #type ⇒ Symbol, :tool_use
Instance Method Summary collapse
-
#initialize(id:, caller_:, input:, name: :scroll, toolset_name: :browser, type: :tool_use) ⇒ BrowserScrollToolUseBlock
constructor
Some parameter documentations has been truncated, see BrowserScrollToolUseBlock for more details.
- #to_hash ⇒ { id: String, caller_: Anthropic::Models::tool_use_caller, input: Anthropic::BrowserScrollInput, name: :scroll, toolset_name: :browser, 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: :scroll, toolset_name: :browser, type: :tool_use) ⇒ BrowserScrollToolUseBlock
Some parameter documentations has been truncated, see Anthropic::Models::BrowserScrollToolUseBlock for more details.
|
|
# File 'lib/anthropic/models/browser_scroll_tool_use_block.rb', line 39
|
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/browser_scroll_tool_use_block.rb', line 16 required :caller_, union: -> { Anthropic::ToolUseCaller }, api_name: :caller |
#id ⇒ String
9 |
# File 'lib/anthropic/models/browser_scroll_tool_use_block.rb', line 9 required :id, String |
#input ⇒ Anthropic::Models::BrowserScrollInput
Scroll at a viewport position. target must be a coordinate target.
22 |
# File 'lib/anthropic/models/browser_scroll_tool_use_block.rb', line 22 required :input, -> { Anthropic::BrowserScrollInput } |
#name ⇒ Symbol, :scroll
27 |
# File 'lib/anthropic/models/browser_scroll_tool_use_block.rb', line 27 required :name, const: :scroll |
#toolset_name ⇒ Symbol, :browser
32 |
# File 'lib/anthropic/models/browser_scroll_tool_use_block.rb', line 32 required :toolset_name, const: :browser |
#type ⇒ Symbol, :tool_use
37 |
# File 'lib/anthropic/models/browser_scroll_tool_use_block.rb', line 37 required :type, const: :tool_use |
Instance Method Details
#to_hash ⇒ { id: String, caller_: Anthropic::Models::tool_use_caller, input: Anthropic::BrowserScrollInput, name: :scroll, toolset_name: :browser, type: :tool_use }
35 36 37 38 39 40 41 42 |
# File 'sig/anthropic/models/browser_scroll_tool_use_block.rbs', line 35
def to_hash: -> {
id: String,
caller_: Anthropic::Models::tool_use_caller,
input: Anthropic::BrowserScrollInput,
name: :scroll,
toolset_name: :browser,
type: :tool_use
}
|