Interface FunctionCallResult

Result of a single function call.

interface FunctionCallResult {
    functionName: string;
    arguments: Record<string, unknown>;
    argumentsValid: boolean;
    validationErrors?: ValidationIssue[];
    executionResult?: unknown;
    executionError?: string;
    callId: string;
}

Properties

functionName: string

Function that was called

arguments: Record<string, unknown>

Arguments passed to the function

argumentsValid: boolean

Whether arguments validated against schema

validationErrors?: ValidationIssue[]

Validation errors for arguments

executionResult?: unknown

Result of executing the function (if handler provided)

executionError?: string

Error during execution (if any)

callId: string

Unique ID for this call (for multi-turn conversations)