Class: Anthropic::Models::Beta::BetaToolUseBlock
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaToolUseBlock
- Defined in:
- lib/anthropic/models/beta/beta_tool_use_block.rb,
sig/anthropic/models/beta/beta_tool_use_block.rbs
Defined Under Namespace
Modules: Caller
Instance Attribute Summary collapse
- #caller_ ⇒ Anthropic::Models::Beta::BetaDirectCaller, ...
- #id ⇒ String
- #input ⇒ Object
- #name ⇒ String
-
#toolset_name ⇒ String?
For a toolset member tool_use, the toolset family.
- #type ⇒ Symbol, :tool_use
Instance Method Summary collapse
-
#initialize(id:, input:, name:, caller_: nil, toolset_name: nil, type: :tool_use) ⇒ BetaToolUseBlock
constructor
A new instance of BetaToolUseBlock.
- #to_hash ⇒ { id: String, input: ::Hash[Symbol, top], name: String, type: :tool_use, caller_: Anthropic::Models::Beta::BetaToolUseBlock::caller_, toolset_name: String? }
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:, input:, name:, caller_: nil, toolset_name: nil, type: :tool_use) ⇒ BetaToolUseBlock
Returns a new instance of BetaToolUseBlock.
|
|
# File 'lib/anthropic/models/beta/beta_tool_use_block.rb', line 52
|
Instance Attribute Details
#caller_ ⇒ Anthropic::Models::Beta::BetaDirectCaller, ...
30 |
# File 'lib/anthropic/models/beta/beta_tool_use_block.rb', line 30 optional :caller_, union: -> { Anthropic::Beta::BetaToolUseBlock::Caller }, api_name: :caller |
#id ⇒ String
10 |
# File 'lib/anthropic/models/beta/beta_tool_use_block.rb', line 10 required :id, String |
#input ⇒ Object
15 |
# File 'lib/anthropic/models/beta/beta_tool_use_block.rb', line 15 required :input, Anthropic::Internal::Type::Unknown |
#name ⇒ String
20 |
# File 'lib/anthropic/models/beta/beta_tool_use_block.rb', line 20 required :name, String |
#toolset_name ⇒ String?
For a toolset member tool_use, the toolset family.
36 |
# File 'lib/anthropic/models/beta/beta_tool_use_block.rb', line 36 optional :toolset_name, String, nil?: true |
#type ⇒ Symbol, :tool_use
25 |
# File 'lib/anthropic/models/beta/beta_tool_use_block.rb', line 25 required :type, const: :tool_use |
Instance Method Details
#to_hash ⇒ { id: String, input: ::Hash[Symbol, top], name: String, type: :tool_use, caller_: Anthropic::Models::Beta::BetaToolUseBlock::caller_, toolset_name: String? }
42 43 44 45 46 47 48 49 |
# File 'sig/anthropic/models/beta/beta_tool_use_block.rbs', line 42
def to_hash: -> {
id: String,
input: ::Hash[Symbol, top],
name: String,
type: :tool_use,
caller_: Anthropic::Models::Beta::BetaToolUseBlock::caller_,
toolset_name: String?
}
|