langchain.js
    Preparing search index...
    type RetryPolicy = {
        backoffFactor?: number;
        initialInterval?: number;
        jitter?: boolean;
        logWarning?: boolean;
        maxAttempts?: number;
        maxInterval?: number;
        retryOn?: (e: any) => boolean;
    }
    Index

    Properties

    backoffFactor?: number

    Multiplier by which the interval increases after each retry.

    2
    
    initialInterval?: number

    Amount of time that must elapse before the first retry occurs in milliseconds.

    500
    
    jitter?: boolean

    Whether to add random jitter to the interval between retries.

    logWarning?: boolean

    Whether to log a warning when a retry is attempted. Defaults to true.

    maxAttempts?: number

    Maximum amount of time that may elapse between retries.

    3
    
    maxInterval?: number

    Maximum amount of time that may elapse between retries in milliseconds.

    128000
    
    retryOn?: (e: any) => boolean

    A function that returns True for exceptions that should trigger a retry.