FunctionResultStep: {
    call_id: string;
    is_error?: boolean;
    name?: string;
    result: FunctionResultStepResult | FunctionResultSubcontent[] | string;
    type: "function_result";
}

Result of a function tool call.

Type declaration

  • call_id: string

    Required. ID to match the ID from the function call block.

  • Optionalis_error?: boolean

    Whether the tool call resulted in an error.

  • Optionalname?: string

    The name of the tool that was called.

  • result: FunctionResultStepResult | FunctionResultSubcontent[] | string

    The result of the tool call.

  • type: "function_result"