TrajectoryAssistantRecord class final

A finalized assistant response row (message kind).

Inheritance

Constructors

TrajectoryAssistantRecord({required int index, required String recordId, required String messageId, required int turn, required int step, String? provider, String? model, Usage? usage, int? inputTokens, int? cacheReadTokens, int? cacheWriteTokens, int? outputTokens, int? reasoningTokens, DateTime? stepStartTime, DateTime? firstTokenTime, DateTime? completedTime, List<TrajectorySourceBlock> sourceBlocks = const [], List<TrajectorySourceBlock> outputBlocks = const [], List<TrajectoryPartialBlock> partialBlocks = const [], String? schemaDetail, String? thinkingDetail, String? inputDetail, String? outputDetail, String? promptDetail, String? previousPromptDetail, Duration? timeSeconds, bool? isError, String? errorCode, String? errorMessage, bool requestOnly = false, String displayText = '', TrajectoryRequestDetail? requestDetail})
Creates a TrajectoryAssistantRecord.
const

Properties

cacheReadTokens → int?
Input tokens served from a provider cache.
final
cacheWriteTokens → int?
Input tokens written into a provider cache.
final
completedTime → DateTime?
Wall-clock time the response completed.
final
displayText → String
Fallback row label when the message has no visible content.
final
errorCode → String?
Provider/machine error code, when known.
final
errorMessage → String?
Human-readable error description.
final
firstTokenTime → DateTime?
Time-to-first-token marker.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
1-based record index shown as #N.
finalinherited
inputDetail → String?
Full request content (markdown).
final
inputTokens → int?
Prompt token count.
final
isError → bool?
Whether the response failed or was aborted.
final
kind → TrajectoryCellKind
Closed-set kind for exhaustive renderer dispatch.
no setteroverride
messageId → String
Session record id of the owning message.
final
model → String?
Model id, when known.
final
outputBlocks → List<TrajectorySourceBlock>
Finalized output blocks in source order.
final
outputDetail → String?
Full response content (markdown).
final
outputTokens → int?
Completion token count.
final
partialBlocks → List<TrajectoryPartialBlock>
In-flight streaming blocks (finalized rows keep this empty).
final
previousPromptDetail → String?
Conversation prompt snapshot replaced by this step (markdown).
final
promptDetail → String?
Conversation prompt snapshot introduced with this step (markdown).
final
provider → String?
Provider id, when known.
final
reasoningTokens → int?
Reasoning token count, when reported.
final
recordId → String
Stable identity surviving prepends of older projected records.
finalinherited
requestDetail → TrajectoryRequestDetail?
Outbound-request summary captured before this step's provider call.
final
requestOnly → bool
Whether the row is a request-only separator without a message record.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaDetail → String?
Call-time model-visible tool schema (markdown).
final
sourceBlocks → List<TrajectorySourceBlock>
Original message blocks in source order.
final
step → int
1-based assistant step within turn.
final
stepStartTime → DateTime?
Wall-clock time the request was issued.
final
thinkingDetail → String?
Full reasoning text.
final
timeSeconds → Duration?
Wall-clock duration; null while the step is running.
final
turn → int
1-based model turn this step belongs to.
final
usage → Usage?
Full token/cost accounting for this response.
final

Methods

identityJson() → Map<String, dynamic>
Identity/summary entries shared by the lossless JSON export (trajectory_export.dart) and the UI cell JSON (fa_ui trajectory_cell.dart); both extend this map with their own fields.
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