ToolCallRecord class

Record of a single tool invocation during a trial.

Constructors

ToolCallRecord({required String callId, required String toolName, required Map<String, dynamic> arguments, FunctionExecutionResult? result, required DateTime startedAt, required DateTime endedAt, bool isError = false, String? errorMessage})
ToolCallRecord.fromJson(Map<String, dynamic> json)
factory

Properties

arguments → Map<String, dynamic>
final
callId → String
final
duration → Duration
no setter
endedAt → DateTime
final
errorMessage → String?
final
hashCode → int
The hash code for this object.
no setterinherited
isError → bool
final
result → FunctionExecutionResult?
Strongly-typed execution result. May be null when the tool errored before producing one; details should still appear in errorMessage in that case.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startedAt → DateTime
final
toolName → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited