Class: OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse
- Defined in:
- lib/openai/models/evals/runs/output_item_retrieve_response.rb,
sig/openai/models/evals/runs/output_item_retrieve_response.rbs
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
Unix timestamp (in seconds) when the evaluation run was created.
-
#datasource_item ⇒ ::Hash[Symbol, top]
Details of the input data source item.
-
#datasource_item_id ⇒ Integer
The identifier for the data source item.
-
#eval_id ⇒ String
The identifier of the evaluation group.
-
#id ⇒ String
Unique identifier for the evaluation run output item.
-
#object ⇒ :"eval.run.output_item"
The type of the object.
-
#results ⇒ ::Array[OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Result]
A list of grader results for this output item.
-
#run_id ⇒ String
The identifier of the evaluation run associated with this output item.
-
#sample ⇒ OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample
A sample containing the input and output of the evaluation run.
-
#status ⇒ String
The status of the evaluation run.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(name:, passed:, score:, sample: nil, type: nil) ⇒ OutputItemRetrieveResponse
constructor
A new instance of OutputItemRetrieveResponse.
- #to_hash ⇒ { id: String, created_at: Integer, datasource_item: ::Hash[Symbol, top], datasource_item_id: Integer, eval_id: String, ?object: :"eval.run.output_item", results: ::Array[OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Result], run_id: String, sample: OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample, status: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(name:, passed:, score:, sample: nil, type: nil) ⇒ OutputItemRetrieveResponse
Returns a new instance of OutputItemRetrieveResponse.
|
|
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 135
|
Instance Attribute Details
#created_at ⇒ Integer
Unix timestamp (in seconds) when the evaluation run was created.
19 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 19 required :created_at, Integer |
#datasource_item ⇒ ::Hash[Symbol, top]
Details of the input data source item.
25 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 25 required :datasource_item, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown] |
#datasource_item_id ⇒ Integer
The identifier for the data source item.
31 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 31 required :datasource_item_id, Integer |
#eval_id ⇒ String
The identifier of the evaluation group.
37 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 37 required :eval_id, String |
#id ⇒ String
Unique identifier for the evaluation run output item.
13 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 13 required :id, String |
#object ⇒ :"eval.run.output_item"
The type of the object. Always "eval.run.output_item".
43 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 43 required :object, const: :"eval.run.output_item" |
#results ⇒ ::Array[OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Result]
A list of grader results for this output item.
49 50 51 52 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 49 required( :results, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Result] } ) |
#run_id ⇒ String
The identifier of the evaluation run associated with this output item.
58 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 58 required :run_id, String |
#sample ⇒ OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample
A sample containing the input and output of the evaluation run.
64 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 64 required :sample, -> { OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample } |
#status ⇒ String
The status of the evaluation run.
70 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 70 required :status, String |
Instance Method Details
#to_hash ⇒ { id: String, created_at: Integer, datasource_item: ::Hash[Symbol, top], datasource_item_id: Integer, eval_id: String, ?object: :"eval.run.output_item", results: ::Array[OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Result], run_id: String, sample: OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample, status: String }
83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'sig/openai/models/evals/runs/output_item_retrieve_response.rbs', line 83
def to_hash: -> {
id: String,
created_at: Integer,
datasource_item: ::Hash[Symbol, top],
datasource_item_id: Integer,
eval_id: String,
?object: :"eval.run.output_item",
results: ::Array[OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Result],
run_id: String,
sample: OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample,
status: String
}
|