Member Junction
    Preparing search index...

    Options for makeFailedChatResult.

    interface FailedChatResultOptions {
        endTime?: Date;
        errorInfo?: AIErrorInfo;
        errorMessage?: string;
        exception?: unknown;
        omitData?: boolean;
        startTime?: Date;
        statusText?: string;
    }
    Index

    Properties

    endTime?: Date
    errorInfo?: AIErrorInfo

    Leave unset to model an undiagnosed driver failure (no errorInfo at all).

    errorMessage?: string
    exception?: unknown
    omitData?: boolean

    When true, data is left unassigned (some driver failure paths return no data at all). Default builds the empty { choices: [], usage } data that BaseLLM's own error paths produce.

    startTime?: Date
    statusText?: string