Class: Anthropic::Models::Tool::InputSchema
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Tool::InputSchema
- Defined in:
- lib/anthropic/models/tool.rb,
sig/anthropic/models/tool.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ InputSchema
constructor
A new instance of InputSchema.
- #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 ⇒ InputSchema
Returns a new instance of InputSchema.
92 93 94 95 96 |
# File 'sig/anthropic/models/tool.rbs', line 92
def initialize: (
?properties: ::Hash[Symbol, top]?,
?required: ::Array[String]?,
?type: :object
) -> void
|
Instance Attribute Details
#properties ⇒ Hash{Symbol=>Object}?
113 114 115 |
# File 'lib/anthropic/models/tool.rb', line 113 optional :properties, Anthropic::Internal::Type::HashOf[Anthropic::Internal::Type::Unknown], nil?: true |
#required ⇒ Array<String>?
120 |
# File 'lib/anthropic/models/tool.rb', line 120 optional :required, Anthropic::Internal::Type::ArrayOf[String], nil?: true |
#type ⇒ Symbol, :object
108 |
# File 'lib/anthropic/models/tool.rb', line 108 required :type, const: :object |
Instance Method Details
#to_hash ⇒ { type: :object, properties: ::Hash[Symbol, top]?, required: ::Array[String]? }
98 99 100 101 102 |
# File 'sig/anthropic/models/tool.rbs', line 98
def to_hash: -> {
type: :object,
properties: ::Hash[Symbol, top]?,
required: ::Array[String]?
}
|