Class: OpenAI::Models::Graders::GraderInputItem::OutputText
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Graders::GraderInputItem::OutputText
- Defined in:
- lib/openai/models/graders/grader_input_item.rb,
sig/openai/models/graders/grader_input_item.rbs
Instance Attribute Summary collapse
-
#text ⇒ String
The text output from the model.
-
#type ⇒ Symbol, :output_text
The type of the output text.
Instance Method Summary collapse
-
#initialize ⇒ OutputText
constructor
A new instance of OutputText.
- #to_hash ⇒ { text: String, type: :output_text }
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 ⇒ OutputText
Returns a new instance of OutputText.
21 |
# File 'sig/openai/models/graders/grader_input_item.rbs', line 21
def initialize: (text: String, ?type: :output_text) -> void
|
Instance Attribute Details
#text ⇒ String
The text output from the model.
30 |
# File 'lib/openai/models/graders/grader_input_item.rb', line 30 required :text, String |
#type ⇒ Symbol, :output_text
The type of the output text. Always output_text.
36 |
# File 'lib/openai/models/graders/grader_input_item.rb', line 36 required :type, const: :output_text |
Instance Method Details
#to_hash ⇒ { text: String, type: :output_text }
23 |
# File 'sig/openai/models/graders/grader_input_item.rbs', line 23
def to_hash: -> { text: String, type: :output_text }
|