ToolCallRecord
Record of a tool call that occurred during a turn. Included in RunResult.tools.
Properties
Section titled “Properties”args:
Record<string,unknown>
Arguments the model passed to the tool.
callId
Section titled “callId”callId:
string
Tool call ID from the model response.
duration
Section titled “duration”duration:
number
Execution time in milliseconds.
error?
Section titled “error?”
optionalerror?:string
Error message if the tool execution failed.
name:
string
Tool name.
result
Section titled “result”result:
unknown
Value returned by the tool (or null if it failed).