EvalOutputItem class

An output item from an evaluation run.

Each output item represents one evaluation data point with its model sample and grading results.

Annotations
  • @immutable

Constructors

EvalOutputItem({required String id, required String evalId, required String runId, required int createdAt, required String object, required String status, required Map<String, dynamic> datasourceItem, required int datasourceItemId, required EvalOutputItemSample sample, required List<EvalOutputItemResult> results})
Creates an EvalOutputItem.
const
EvalOutputItem.fromJson(Map<String, dynamic> json)
Creates an EvalOutputItem from JSON.
factory

Properties

createdAt int
The Unix timestamp (in seconds) when this item was created.
final
datasourceItem Map<String, dynamic>
The original data source item that was evaluated.
final
datasourceItemId int
The numeric ID of the data source item.
final
evalId String
The ID of the parent evaluation.
final
failed bool
Whether this item failed any grader.
no setter
failedCount int
The number of graders that failed.
no setter
hashCode int
The hash code for this object.
no setteroverride
id String
The unique identifier for this output item.
final
object String
The object type (always "eval.run.output_item").
final
passed bool
Whether this item passed all graders.
no setter
passedCount int
The number of graders that passed.
no setter
results List<EvalOutputItemResult>
The grading results for this item.
final
runId String
The ID of the parent run.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sample EvalOutputItemSample
The model sample generated for this item.
final
status String
The status of this output item (e.g., "pass", "fail").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override