Class: OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse

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

Overview

Defined Under Namespace

Classes: Sample

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

Parameters:

  • id (String) (defaults to: )

    Unique identifier for the evaluation run output item.

  • created_at (Integer) (defaults to: )

    Unix timestamp (in seconds) when the evaluation run was created.

  • datasource_item (Hash{Symbol=>Object}) (defaults to: )

    Details of the input data source item.

  • datasource_item_id (Integer) (defaults to: )

    The identifier for the data source item.

  • eval_id (String) (defaults to: )

    The identifier of the evaluation group.

  • results (Array<Hash{Symbol=>Object}>) (defaults to: )

    A list of results from the evaluation run.

  • run_id (String) (defaults to: )

    The identifier of the evaluation run associated with this output item.

  • sample (OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample) (defaults to: )

    A sample containing the input and output of the evaluation run.

  • status (String) (defaults to: )

    The status of the evaluation run.

  • object (Symbol, :"eval.run.output_item") (defaults to: :"eval.run.output_item")

    The type of the object. Always “eval.run.output_item”.



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

Instance Attribute Details

#created_atInteger

Unix timestamp (in seconds) when the evaluation run was created.

Returns:

  • (Integer)


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

required :created_at, Integer

#datasource_itemHash{Symbol=>Object}

Details of the input data source item.

Returns:

  • (Hash{Symbol=>Object})


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_idInteger

The identifier for the data source item.

Returns:

  • (Integer)


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

required :datasource_item_id, Integer

#eval_idString

The identifier of the evaluation group.

Returns:

  • (String)


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

required :eval_id, String

#idString

Unique identifier for the evaluation run output item.

Returns:

  • (String)


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

required :id, String

#objectSymbol, :"eval.run.output_item"

The type of the object. Always “eval.run.output_item”.

Returns:

  • (Symbol, :"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"

#resultsArray<Hash{Symbol=>Object}>

A list of results from the evaluation run.

Returns:

  • (Array<Hash{Symbol=>Object}>)


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

required :results,
OpenAI::Internal::Type::ArrayOf[OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown]]

#run_idString

The identifier of the evaluation run associated with this output item.

Returns:

  • (String)


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

required :run_id, String

#sampleOpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample

A sample containing the input and output of the evaluation run.



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

required :sample, -> { OpenAI::Models::Evals::Runs::OutputItemRetrieveResponse::Sample }

#statusString

The status of the evaluation run.

Returns:

  • (String)


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

required :status, String