TraceView class

Constructors

TraceView({String? apiKeyHash, String? datasetItemId, String? datasetName, String? endTime, String? id, Object? input, num? latencyMs, String? model, String? name, String? output, String? projectId, String? runName, String? sessionId, String? startTime, String? timestamp})
Returns a new TraceView instance.

Properties

apiKeyHash ↔ String?
APIKeyHash is the non-reversible credential ref (never a plaintext key), so a trace correlates to the key that drove it without the store holding a secret.
getter/setter pair
datasetItemId ↔ String?
ItemID is the example the call answered.
getter/setter pair
datasetName ↔ String?
Dataset is the set the graded example came from.
getter/setter pair
endTime ↔ String?
EndTime is when it returned.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the trace's handle, the value a score points at.
getter/setter pair
input ↔ Object?
Input is what the model was given.
getter/setter pair
latencyMs ↔ num?
LatencyMs is EndTime-StartTime in milliseconds, nil when the trace carries no timing (so the console renders "—", never a fabricated 0).
getter/setter pair
model ↔ String?
Model is the model that answered.
getter/setter pair
name ↔ String?
Name is the trace's label, "eval:
getter/setter pair
output ↔ String?
Output is what it answered.
getter/setter pair
projectId ↔ String?
ProjectID is the sub-scope within the org the call was made under.
getter/setter pair
runName ↔ String?
RunName is the run the call belongs to.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId ↔ String?
SessionID groups the calls of one run.
getter/setter pair
startTime ↔ String?
StartTime is when the call began.
getter/setter pair
timestamp ↔ String?
Timestamp is the trace's own clock, equal to StartTime for a timed call.
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) → TraceView?
Returns a new TraceView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TraceView>
mapFromJson(dynamic json) → Map<String, TraceView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TraceView>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.