TrajectorySnapshot class final
Immutable stage-oriented trajectory data assembled from session records.
Constructors
-
TrajectorySnapshot({required UnmodifiableListView<
TrajectoryRecord> records, required UnmodifiableListView<TrajectoryRequestNumber> requests, required Map<String, String> callSchemas, required TrajectoryPartialAssistant? partial, required UnmodifiableListView<TrajectoryRunningToolCall> runningCalls, required Map<String, int> recordLocations, required int revision, TrajectoryBlobTable blobs = const TrajectoryBlobTable(), int unknownRecordCount = 0}) -
Creates a TrajectorySnapshot.
const
Properties
- blobs → TrajectoryBlobTable
-
Content-addressed blobs behind the request drill-in (issue #385):
system-prompt texts, tool manifests, and opt-in wire dumps. Empty
for old sessions — renderers degrade to counts honestly (E6).
final
-
callSchemas
→ Map<
String, String> -
Call-time model-visible tool schema per tool name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- partial → TrajectoryPartialAssistant?
-
The assistant message currently streaming, if any.
final
-
recordLocations
→ Map<
String, int> -
Map of record id to its index in records.
final
-
records
→ UnmodifiableListView<
TrajectoryRecord> -
Ledger rows in append order.
final
-
requests
→ UnmodifiableListView<
TrajectoryRequestNumber> -
Captured provider requests, in issue order.
final
- revision → int
-
Monotonic version of this snapshot; grows by one per builder append.
final
-
runningCalls
→ UnmodifiableListView<
TrajectoryRunningToolCall> -
Tool calls issued but not yet answered.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unknownRecordCount → int
-
How many record kinds the builder did not know rendered as
unknown recordcontext rows (F6: the ledger is provably lossless).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- empty → TrajectorySnapshot
-
Empty snapshot with revision
0, used before any record is appended.final