Class: OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample::Input

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/evals/runs/output_item_retrieve_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, 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.

Parameters:



184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 184

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

#contentString

The content of the message.

Returns:

  • (String)


189
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 189

required :content, String

#roleString

The role of the message sender (e.g., system, user, developer).

Returns:

  • (String)


195
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 195

required :role, String