Interface ToolCallRecord

Record of a single tool invocation performed during a generateText call. One record is appended per tool call, regardless of whether the call succeeded.

interface ToolCallRecord {
    name: string;
    args: unknown;
    result?: unknown;
    error?: string;
}

Properties

Properties

name: string

Name of the tool as registered in the tools map.

args: unknown

Parsed arguments supplied by the model.

result?: unknown

Return value from the tool's execute function (present on success).

error?: string

Error message when the tool threw or returned a failure result.