Class: OpenAI::Helpers::StructuredOutput::Boolean Abstract
- Inherits:
-
Internal::Type::Boolean
- Object
- Internal::Type::Boolean
- OpenAI::Helpers::StructuredOutput::Boolean
- Extended by:
- JsonSchemaConverter
- Defined in:
- lib/openai/helpers/structured_output/boolean.rb
Overview
This class is abstract.
Ruby does not have a “boolean” Class, this is something for models to refer to.
Constant Summary
Constants included from JsonSchemaConverter
JsonSchemaConverter::COUNTER, JsonSchemaConverter::POINTER
Class Method Summary collapse
Methods included from JsonSchemaConverter
cache_def!, to_json_schema, to_json_schema_inner, to_nilable
Methods inherited from Internal::Type::Boolean
==, ===, coerce, dump, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Class Method Details
.to_json_schema_inner(state:) ⇒ Hash{Symbol=>Object}
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 |
# File 'lib/openai/helpers/structured_output/boolean.rb', line 22 def self.to_json_schema_inner(state:) = {type: "boolean"} |