Class: OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample::Input
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample::Input
- Defined in:
- lib/openai/models/evals/runs/output_item_retrieve_response.rb
Instance Attribute Summary collapse
-
#content ⇒ String
The content of the message.
-
#role ⇒ String
The role of the message sender (e.g., system, user, developer).
Instance Method Summary collapse
-
#initialize(error:, finish_reason:, input:, max_completion_tokens:, model:, output:, seed:, temperature:, top_p:, usage:) ⇒ Object
constructor
Some parameter documentations has been truncated, see OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample for more details.
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(error:, finish_reason:, input:, max_completion_tokens:, model:, output:, seed:, temperature:, top_p:, usage:) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample for more details.
A sample containing the input and output of the evaluation run.
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 229 class Input < OpenAI::Internal::Type::BaseModel # @!attribute content # The content of the message. # # @return [String] required :content, String # @!attribute role # The role of the message sender (e.g., system, user, developer). # # @return [String] required :role, String # @!method initialize(content:, role:) # An input message. # # @param content [String] The content of the message. # # @param role [String] The role of the message sender (e.g., system, user, developer). end |
Instance Attribute Details
#content ⇒ String
The content of the message.
234 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 234 required :content, String |
#role ⇒ String
The role of the message sender (e.g., system, user, developer).
240 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 240 required :role, String |