Skip to content

ToolCallRecord

Record of a tool call that occurred during a turn. Included in RunResult.tools.

args: Record<string, unknown>

Arguments the model passed to the tool.


callId: string

Tool call ID from the model response.


duration: number

Execution time in milliseconds.


optional error?: string

Error message if the tool execution failed.


name: string

Tool name.


result: unknown

Value returned by the tool (or null if it failed).