nexus-agents - v2.80.0
    Preparing search index...

    Interface WithRetryOptions

    Options for withRetry function.

    interface WithRetryOptions {
        config?: Partial<RetryConfig>;
        isRetryable?: (error: unknown) => boolean;
        onRetry?: (info: RetryAttemptInfo) => void;
    }
    Index

    Properties

    config?: Partial<RetryConfig>

    Retry configuration. Defaults to DEFAULT_RETRY_CONFIG.

    isRetryable?: (error: unknown) => boolean

    Custom predicate to determine if an error is retryable. Defaults to isRetryableError.

    onRetry?: (info: RetryAttemptInfo) => void

    Callback invoked before each retry attempt. Useful for logging.