Class: OpenAI::Models::Evals::RunCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Evals::RunCreateResponse
- Defined in:
- lib/openai/models/evals/run_create_response.rb,
sig/openai/models/evals/run_create_response.rbs
Overview
Defined Under Namespace
Modules: DataSource Classes: PerModelUsage, PerTestingCriteriaResult, ResultCounts
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
Unix timestamp (in seconds) when the evaluation run was created.
-
#data_source ⇒ OpenAI::Models::Evals::RunCreateResponse::data_source
Information about the run's data source.
-
#error ⇒ OpenAI::Evals::EvalAPIError
An object representing an error response from the Eval API.
-
#eval_id ⇒ String
The identifier of the associated evaluation.
-
#id ⇒ String
Unique identifier for the evaluation run.
-
#metadata ⇒ OpenAI::Models::metadata?
Set of 16 key-value pairs that can be attached to an object.
-
#model ⇒ String
The model that is evaluated, if applicable.
-
#name ⇒ String
The name of the evaluation run.
-
#object ⇒ :"eval.run"
The type of the object.
-
#per_model_usage ⇒ ::Array[OpenAI::Models::Evals::RunCreateResponse::PerModelUsage]
Usage statistics for each model during the evaluation run.
-
#per_testing_criteria_results ⇒ ::Array[OpenAI::Models::Evals::RunCreateResponse::PerTestingCriteriaResult]
Results per testing criteria applied during the evaluation run.
-
#report_url ⇒ String
The URL to the rendered evaluation run report on the UI dashboard.
-
#result_counts ⇒ OpenAI::Models::Evals::RunCreateResponse::ResultCounts
Counters summarizing the outcomes of the evaluation run.
-
#status ⇒ String
The status of the evaluation run.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(failed:, passed:, testing_criteria:) ⇒ RunCreateResponse
constructor
A new instance of RunCreateResponse.
- #to_hash ⇒ { id: String, created_at: Integer, data_source: OpenAI::Models::Evals::RunCreateResponse::data_source, error: OpenAI::Evals::EvalAPIError, eval_id: String, metadata: OpenAI::Models::metadata?, model: String, name: String, ?object: :"eval.run", per_model_usage: ::Array[OpenAI::Models::Evals::RunCreateResponse::PerModelUsage], per_testing_criteria_results: ::Array[OpenAI::Models::Evals::RunCreateResponse::PerTestingCriteriaResult], report_url: String, result_counts: OpenAI::Models::Evals::RunCreateResponse::ResultCounts, 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(failed:, passed:, testing_criteria:) ⇒ RunCreateResponse
Returns a new instance of RunCreateResponse.
|
|
# File 'lib/openai/models/evals/run_create_response.rb', line 102
|
Instance Attribute Details
#created_at ⇒ Integer
Unix timestamp (in seconds) when the evaluation run was created.
18 |
# File 'lib/openai/models/evals/run_create_response.rb', line 18 required :created_at, Integer |
#data_source ⇒ OpenAI::Models::Evals::RunCreateResponse::data_source
Information about the run's data source.
24 |
# File 'lib/openai/models/evals/run_create_response.rb', line 24 required :data_source, union: -> { OpenAI::Models::Evals::RunCreateResponse::DataSource } |
#error ⇒ OpenAI::Evals::EvalAPIError
An object representing an error response from the Eval API.
30 |
# File 'lib/openai/models/evals/run_create_response.rb', line 30 required :error, -> { OpenAI::Evals::EvalAPIError } |
#eval_id ⇒ String
The identifier of the associated evaluation.
36 |
# File 'lib/openai/models/evals/run_create_response.rb', line 36 required :eval_id, String |
#id ⇒ String
Unique identifier for the evaluation run.
12 |
# File 'lib/openai/models/evals/run_create_response.rb', line 12 required :id, String |
#metadata ⇒ OpenAI::Models::metadata?
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
46 |
# File 'lib/openai/models/evals/run_create_response.rb', line 46 required :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#model ⇒ String
The model that is evaluated, if applicable.
52 |
# File 'lib/openai/models/evals/run_create_response.rb', line 52 required :model, String |
#name ⇒ String
The name of the evaluation run.
58 |
# File 'lib/openai/models/evals/run_create_response.rb', line 58 required :name, String |
#object ⇒ :"eval.run"
The type of the object. Always "eval.run".
64 |
# File 'lib/openai/models/evals/run_create_response.rb', line 64 required :object, const: :"eval.run" |
#per_model_usage ⇒ ::Array[OpenAI::Models::Evals::RunCreateResponse::PerModelUsage]
Usage statistics for each model during the evaluation run.
70 71 72 73 |
# File 'lib/openai/models/evals/run_create_response.rb', line 70 required( :per_model_usage, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Models::Evals::RunCreateResponse::PerModelUsage] } ) |
#per_testing_criteria_results ⇒ ::Array[OpenAI::Models::Evals::RunCreateResponse::PerTestingCriteriaResult]
Results per testing criteria applied during the evaluation run.
79 80 81 82 |
# File 'lib/openai/models/evals/run_create_response.rb', line 79 required( :per_testing_criteria_results, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Models::Evals::RunCreateResponse::PerTestingCriteriaResult] } ) |
#report_url ⇒ String
The URL to the rendered evaluation run report on the UI dashboard.
88 |
# File 'lib/openai/models/evals/run_create_response.rb', line 88 required :report_url, String |
#result_counts ⇒ OpenAI::Models::Evals::RunCreateResponse::ResultCounts
Counters summarizing the outcomes of the evaluation run.
94 |
# File 'lib/openai/models/evals/run_create_response.rb', line 94 required :result_counts, -> { OpenAI::Models::Evals::RunCreateResponse::ResultCounts } |
#status ⇒ String
The status of the evaluation run.
100 |
# File 'lib/openai/models/evals/run_create_response.rb', line 100 required :status, String |
Class Method Details
.variants ⇒ Array(OpenAI::Models::Evals::CreateEvalJSONLRunDataSource, OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource, OpenAI::Models::Evals::RunCreateResponse::DataSource::Responses)
|
|
# File 'lib/openai/models/evals/run_create_response.rb', line 910
|
Instance Method Details
#to_hash ⇒ { id: String, created_at: Integer, data_source: OpenAI::Models::Evals::RunCreateResponse::data_source, error: OpenAI::Evals::EvalAPIError, eval_id: String, metadata: OpenAI::Models::metadata?, model: String, name: String, ?object: :"eval.run", per_model_usage: ::Array[OpenAI::Models::Evals::RunCreateResponse::PerModelUsage], per_testing_criteria_results: ::Array[OpenAI::Models::Evals::RunCreateResponse::PerTestingCriteriaResult], report_url: String, result_counts: OpenAI::Models::Evals::RunCreateResponse::ResultCounts, status: String }
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'sig/openai/models/evals/run_create_response.rbs', line 118
def to_hash: -> {
id: String,
created_at: Integer,
data_source: OpenAI::Models::Evals::RunCreateResponse::data_source,
error: OpenAI::Evals::EvalAPIError,
eval_id: String,
metadata: OpenAI::Models::metadata?,
model: String,
name: String,
?object: :"eval.run",
per_model_usage: ::Array[OpenAI::Models::Evals::RunCreateResponse::PerModelUsage],
per_testing_criteria_results: ::Array[OpenAI::Models::Evals::RunCreateResponse::PerTestingCriteriaResult],
report_url: String,
result_counts: OpenAI::Models::Evals::RunCreateResponse::ResultCounts,
status: String
}
|