Class: Anthropic::Models::ToolUseBlockParam
Defined Under Namespace
Modules: Caller
Constant Summary
collapse
- Anthropic =
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, input:, name:, cache_control: nil, caller_: nil, toolset_name: nil, type: :tool_use) ⇒ void
|
# File 'lib/anthropic/models/tool_use_block_param.rb', line 43
|
Instance Attribute Details
Create a cache control breakpoint at this content block.
30
|
# File 'lib/anthropic/models/tool_use_block_param.rb', line 30
optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true
|
35
|
# File 'lib/anthropic/models/tool_use_block_param.rb', line 35
optional :caller_, union: -> { Anthropic::ToolUseBlockParam::Caller }, api_name: :caller
|
#id ⇒ String
9
|
# File 'lib/anthropic/models/tool_use_block_param.rb', line 9
required :id, String
|
14
|
# File 'lib/anthropic/models/tool_use_block_param.rb', line 14
required :input, Anthropic::Internal::Type::HashOf[Anthropic::Internal::Type::Unknown]
|
#name ⇒ String
19
|
# File 'lib/anthropic/models/tool_use_block_param.rb', line 19
required :name, String
|
For a toolset member tool_use, the toolset family this member belongs to.
41
|
# File 'lib/anthropic/models/tool_use_block_param.rb', line 41
optional :toolset_name, String, nil?: true
|
#type ⇒ Symbol, :tool_use
24
|
# File 'lib/anthropic/models/tool_use_block_param.rb', line 24
required :type, const: :tool_use
|
Instance Method Details
#to_hash ⇒ {
43
|
# File 'sig/anthropic/models/tool_use_block_param.rbs', line 43
def to_hash: -> {
|