Class: OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Result
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Result
- Defined in:
- lib/openai/models/evals/runs/output_item_retrieve_response.rb
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the grader.
-
#passed ⇒ Boolean
Whether the grader considered the output a pass.
-
#sample ⇒ Hash{Symbol=>Object}?
Optional sample or intermediate data produced by the grader.
-
#score ⇒ Float
The numeric score produced by the grader.
-
#type ⇒ String?
The grader type (for example, “string-check-grader”).
Instance Method Summary collapse
-
#initialize(id:, created_at:, datasource_item:, datasource_item_id:, eval_id:, results:, run_id:, sample:, status:, object: :"eval.run.output_item") ⇒ Object
constructor
A schema representing an evaluation run output item.
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(id:, created_at:, datasource_item:, datasource_item_id:, eval_id:, results:, run_id:, sample:, status:, object: :"eval.run.output_item") ⇒ Object
A schema representing an evaluation run output item.
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 93 class Result < OpenAI::Internal::Type::BaseModel # @!attribute name # The name of the grader. # # @return [String] required :name, String # @!attribute passed # Whether the grader considered the output a pass. # # @return [Boolean] required :passed, OpenAI::Internal::Type::Boolean # @!attribute score # The numeric score produced by the grader. # # @return [Float] required :score, Float # @!attribute sample # Optional sample or intermediate data produced by the grader. # # @return [Hash{Symbol=>Object}, nil] optional :sample, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown], nil?: true # @!attribute type # The grader type (for example, "string-check-grader"). # # @return [String, nil] optional :type, String # @!method initialize(name:, passed:, score:, sample: nil, type: nil) # A single grader result for an evaluation run output item. # # @param name [String] The name of the grader. # # @param passed [Boolean] Whether the grader considered the output a pass. # # @param score [Float] The numeric score produced by the grader. # # @param sample [Hash{Symbol=>Object}, nil] Optional sample or intermediate data produced by the grader. # # @param type [String] The grader type (for example, "string-check-grader"). end |
Instance Attribute Details
#name ⇒ String
The name of the grader.
98 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 98 required :name, String |
#passed ⇒ Boolean
Whether the grader considered the output a pass.
104 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 104 required :passed, OpenAI::Internal::Type::Boolean |
#sample ⇒ Hash{Symbol=>Object}?
Optional sample or intermediate data produced by the grader.
116 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 116 optional :sample, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown], nil?: true |
#score ⇒ Float
The numeric score produced by the grader.
110 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 110 required :score, Float |
#type ⇒ String?
The grader type (for example, “string-check-grader”).
122 |
# File 'lib/openai/models/evals/runs/output_item_retrieve_response.rb', line 122 optional :type, String |