TrajectoryToolRecord class final
A tool (or nested subtool) call row with its result once it arrives.
- Inheritance
-
- Object
- TrajectoryRecord
- TrajectoryToolRecord
Constructors
- TrajectoryToolRecord({required int index, required String recordId, required String callId, required String? parentCallId, required String name, required String argsRaw, String result = '', String? resultPreviewMarkdown, bool isError = false, Duration? timeSeconds, DateTime? startedAt})
-
Creates a TrajectoryToolRecord.
const
Properties
- argsRaw → String
-
Raw JSON arguments of the call.
final
- callId → String
-
Provider-assigned tool call id.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
1-based record index shown as
#N.finalinherited - isError → bool
-
Whether the tool execution failed.
final
- kind → TrajectoryCellKind
-
Closed-set kind for exhaustive renderer dispatch.
no setteroverride
- name → String
-
Invoked tool name.
final
- parentCallId → String?
-
Call id of the enclosing tool call, or null for a top-level call.
final
- recordId → String
-
Stable identity surviving prepends of older projected records.
finalinherited
- result → String
-
Result text; empty while the call is running.
final
- resultPreviewMarkdown → String?
-
Raw Markdown source of the result summary.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startedAt → DateTime?
-
Wall-clock start of the execution, when known.
final
- timeSeconds → Duration?
-
Own duration; null while running.
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
-
withResult(
{required String result, required bool isError, Duration? timeSeconds}) → TrajectoryToolRecord - A copy with the result of the call applied.
-
withStartedAt(
DateTime startedAt) → TrajectoryToolRecord - A copy with the execution start stamped.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited