Class: Anthropic::Models::Beta::BetaResponseToolInputSchema
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaResponseToolInputSchema
- Defined in:
- lib/anthropic/models/beta/beta_response_tool_input_schema.rb,
sig/anthropic/models/beta/beta_response_tool_input_schema.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ BetaResponseToolInputSchema
constructor
A new instance of BetaResponseToolInputSchema.
- #to_hash ⇒ { type: :object, properties: ::Hash[Symbol, top]?, required: ::Array[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 ⇒ BetaResponseToolInputSchema
Returns a new instance of BetaResponseToolInputSchema.
20 21 22 23 24 |
# File 'sig/anthropic/models/beta/beta_response_tool_input_schema.rbs', line 20
def initialize: (
?properties: ::Hash[Symbol, top]?,
?required: ::Array[String]?,
?type: :object
) -> void
|
Instance Attribute Details
#properties ⇒ Hash{Symbol=>Object}?
15 16 17 |
# File 'lib/anthropic/models/beta/beta_response_tool_input_schema.rb', line 15 optional :properties, Anthropic::Internal::Type::HashOf[Anthropic::Internal::Type::Unknown], nil?: true |
#required ⇒ Array<String>?
22 |
# File 'lib/anthropic/models/beta/beta_response_tool_input_schema.rb', line 22 optional :required, Anthropic::Internal::Type::ArrayOf[String], nil?: true |
#type ⇒ Symbol, :object
10 |
# File 'lib/anthropic/models/beta/beta_response_tool_input_schema.rb', line 10 required :type, const: :object |
Instance Method Details
#to_hash ⇒ { type: :object, properties: ::Hash[Symbol, top]?, required: ::Array[String]? }
26 27 28 29 30 |
# File 'sig/anthropic/models/beta/beta_response_tool_input_schema.rbs', line 26
def to_hash: -> {
type: :object,
properties: ::Hash[Symbol, top]?,
required: ::Array[String]?
}
|