GenUiTrace class
A recorded session: everything the agent sent, everything the app sent back, and the state in between.
A generative interface has a problem an ordinary app does not: the screen that failed is not in the source. A model composed it, once, from a context that will not come back. A trace is that screen, kept.
Constructors
-
GenUiTrace({required List<
GenUiTraceStep> steps, String? catalogId, DateTime? recordedAt, Map<String, Object?> notes = const <String, Object?>{}}) - Creates a GenUiTrace.
- GenUiTrace.decode(String source)
-
Reads a trace back from
source.factory -
GenUiTrace.fromJson(Map<
String, Object?> json) -
Reads a trace back from its JSON.
factory
Properties
- catalogId → String?
-
The catalog the session ran against.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
notes
→ Map<
String, Object?> -
Anything the recorder was told to carry along: a build number, a user's
bug report id, the model that answered.
final
- recordedAt → DateTime
-
When the recording started.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
steps
→ List<
GenUiTraceStep> -
What happened, in the order it happened.
final
-
surfaceIds
→ List<
String> -
The surfaces this session created, in order.
no setter
Methods
-
encode(
) → String - This trace as indented JSON, for a file that is read in review.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - This trace as JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited