LlmTrails class
The trails of every session, consolidated in the main isolate.
Each session keeps its records of its newest maxRuns runs (twenty by
default); an older run is dropped whole, and the session events from
before it with it. The trail view reads this, and the trail files are fed
from records.
Properties
-
changes
→ Stream<
String> -
The id of a session whose trail or running state just changed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
records
→ Stream<
LlmTrailRecord> -
Every record as it is made, in order.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sessions
→ List<
String> -
The sessions that hold a record, in the order they first did.
no setter
Methods
-
clear(
String sessionId) → void -
Drops
sessionId's in-memory trail. Touches no file. -
dispose(
) → void - Closes the streams. A record made afterwards is kept and not announced.
-
isRunning(
String sessionId) → bool -
Whether
sessionIdhas a run in progress. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
record(
String sessionId, LlmEvent event, {String? runId}) → LlmTrailRecord -
Records
eventinsessionId, in the runrunId(absent for a session event), and returns the record. -
recordsOf(
String sessionId) → List< LlmTrailRecord> -
sessionId's records, oldest first. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited