ToolResult class
Result returned by a tool.
Constructors
- ToolResult({required Object? payload, int? size, int tokenUsage = 0, Duration duration = Duration.zero, ToolCallStatus status = ToolCallStatus.completed})
Properties
- duration → Duration
-
Wall-clock time the tool spent executing. Feeds the per-tool-class
budget dimension and the trace record's timing (FR-005, FR-007).
final
- effectiveSize → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- payload → Object?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int?
-
final
- status → ToolCallStatus
-
Outcome of the tool call, typed as ToolCallStatus so a failed call is
recorded as failed rather than always
completed(FR-007).final - tokenUsage → int
-
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