Class: Anthropic::Models::Beta::BetaToolChangeToolDefinitionParam
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaToolChangeToolDefinitionParam
- Defined in:
- lib/anthropic/models/beta/beta_tool_change_tool_definition_param.rb,
sig/anthropic/models/beta/beta_tool_change_tool_definition_param.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ BetaToolChangeToolDefinitionParam
constructor
A new instance of BetaToolChangeToolDefinitionParam.
- #to_hash ⇒ { definition: Anthropic::Models::Beta::beta_tool_union, type: :tool_definition }
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 ⇒ BetaToolChangeToolDefinitionParam
Returns a new instance of BetaToolChangeToolDefinitionParam.
17 18 19 20 |
# File 'sig/anthropic/models/beta/beta_tool_change_tool_definition_param.rbs', line 17
def initialize: (
definition: Anthropic::Models::Beta::beta_tool_union,
?type: :tool_definition
) -> void
|
Instance Attribute Details
#definition ⇒ Anthropic::Models::Beta::BetaTool, ...
10 |
# File 'lib/anthropic/models/beta/beta_tool_change_tool_definition_param.rb', line 10 required :definition, union: -> { Anthropic::Beta::BetaToolUnion } |
#type ⇒ Symbol, :tool_definition
15 |
# File 'lib/anthropic/models/beta/beta_tool_change_tool_definition_param.rb', line 15 required :type, const: :tool_definition |
Instance Method Details
#to_hash ⇒ { definition: Anthropic::Models::Beta::beta_tool_union, type: :tool_definition }
22 23 24 25 |
# File 'sig/anthropic/models/beta/beta_tool_change_tool_definition_param.rbs', line 22
def to_hash: -> {
definition: Anthropic::Models::Beta::beta_tool_union,
type: :tool_definition
}
|