Class: OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::InputMessages::Template::Template::EvalItem::Content::OutputText
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::InputMessages::Template::Template::EvalItem::Content::OutputText
- Defined in:
- lib/openai/models/evals/create_eval_completions_run_data_source.rb,
sig/openai/models/evals/create_eval_completions_run_data_source.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.
251 |
# File 'sig/openai/models/evals/create_eval_completions_run_data_source.rbs', line 251
def initialize: (text: String, ?type: :output_text) -> void
|
Instance Attribute Details
#text ⇒ String
The text output from the model.
338 |
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 338 required :text, String |
#type ⇒ Symbol, :output_text
The type of the output text. Always output_text.
344 |
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 344 required :type, const: :output_text |
Instance Method Details
#to_hash ⇒ { text: String, type: :output_text }
253 |
# File 'sig/openai/models/evals/create_eval_completions_run_data_source.rbs', line 253
def to_hash: -> { text: String, type: :output_text }
|