Class: OpenAI::Models::EvalCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::EvalCreateResponse
- Defined in:
- lib/openai/models/eval_create_response.rb,
sig/openai/models/eval_create_response.rbs
Overview
Defined Under Namespace
Modules: DataSourceConfig, TestingCriterion
Constant Summary collapse
- OpenAI =
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the eval was created.
-
#data_source_config ⇒ OpenAI::Models::EvalCreateResponse::data_source_config
Configuration of data sources used in runs of the evaluation.
-
#id ⇒ String
Unique identifier for the evaluation.
-
#metadata ⇒ OpenAI::Models::metadata?
Set of 16 key-value pairs that can be attached to an object.
-
#name ⇒ String
The name of the evaluation.
-
#object ⇒ :eval
The object type.
-
#testing_criteria ⇒ ::Array[OpenAI::Models::EvalCreateResponse::testing_criterion]
A list of testing criteria.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(schema:, metadata: nil, type: :logs) ⇒ EvalCreateResponse
constructor
A new instance of EvalCreateResponse.
- #to_hash ⇒ { id: String, created_at: Integer, data_source_config: OpenAI::Models::EvalCreateResponse::data_source_config, metadata: OpenAI::Models::metadata?, name: String, ?object: :eval, testing_criteria: ::Array[OpenAI::Models::EvalCreateResponse::testing_criterion] }
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(schema:, metadata: nil, type: :logs) ⇒ EvalCreateResponse
Returns a new instance of EvalCreateResponse.
|
|
# File 'lib/openai/models/eval_create_response.rb', line 56
|
Instance Attribute Details
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the eval was created.
17 |
# File 'lib/openai/models/eval_create_response.rb', line 17 required :created_at, Integer |
#data_source_config ⇒ OpenAI::Models::EvalCreateResponse::data_source_config
Configuration of data sources used in runs of the evaluation.
23 |
# File 'lib/openai/models/eval_create_response.rb', line 23 required :data_source_config, union: -> { OpenAI::Models::EvalCreateResponse::DataSourceConfig } |
#id ⇒ String
Unique identifier for the evaluation.
11 |
# File 'lib/openai/models/eval_create_response.rb', line 11 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.
33 |
# File 'lib/openai/models/eval_create_response.rb', line 33 required :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#name ⇒ String
The name of the evaluation.
39 |
# File 'lib/openai/models/eval_create_response.rb', line 39 required :name, String |
#object ⇒ :eval
The object type.
45 |
# File 'lib/openai/models/eval_create_response.rb', line 45 required :object, const: :eval |
#testing_criteria ⇒ ::Array[OpenAI::Models::EvalCreateResponse::testing_criterion]
A list of testing criteria.
51 52 53 54 |
# File 'lib/openai/models/eval_create_response.rb', line 51 required( :testing_criteria, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Models::EvalCreateResponse::TestingCriterion] } ) |
Class Method Details
.variants ⇒ Array(OpenAI::Models::EvalCustomDataSourceConfig, OpenAI::Models::EvalCreateResponse::DataSourceConfig::Logs, OpenAI::Models::EvalStoredCompletionsDataSourceConfig)
|
|
# File 'lib/openai/models/eval_create_response.rb', line 158
|
Instance Method Details
#to_hash ⇒ { id: String, created_at: Integer, data_source_config: OpenAI::Models::EvalCreateResponse::data_source_config, metadata: OpenAI::Models::metadata?, name: String, ?object: :eval, testing_criteria: ::Array[OpenAI::Models::EvalCreateResponse::testing_criterion] }
68 69 70 71 72 73 74 75 76 |
# File 'sig/openai/models/eval_create_response.rbs', line 68
def to_hash: -> {
id: String,
created_at: Integer,
data_source_config: OpenAI::Models::EvalCreateResponse::data_source_config,
metadata: OpenAI::Models::metadata?,
name: String,
?object: :eval,
testing_criteria: ::Array[OpenAI::Models::EvalCreateResponse::testing_criterion]
}
|