ItemResult class
Constructors
- ItemResult({String? error, String? itemId, String? output, num? score, String? traceId})
- Returns a new ItemResult instance.
Properties
- error ↔ String?
-
Error is why this example produced no score — the model, the judge, or the run's deadline. A result carrying one is not counted in Scored.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- itemId ↔ String?
-
ItemID is the example that was scored.
getter/setter pair
- output ↔ String?
-
Output is what the model under test answered, truncated at 2000 characters.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score ↔ num?
-
Score is the judge's grade.
getter/setter pair
- traceId ↔ String?
-
TraceID is the model call this result came from.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → ItemResult? -
Returns a new ItemResult instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< ItemResult> -
mapFromJson(
dynamic json) → Map< String, ItemResult> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< ItemResult> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.