ADK for TypeScript: API Reference
    Preparing search index...

    Interface RetryConfig

    Configuration for retrying a node.

    Ported from google/adk-python workflow/_retry_config.py. Delays are expressed in seconds (fractions allowed) to match the Python semantics and keep configuration portable across runtimes. Unset fields fall back to the documented defaults inside the retry utilities.

    interface RetryConfig {
        backoffFactor?: number;
        exceptions?: (string | ErrorClass)[] | null;
        initialDelay?: number;
        jitter?: number;
        maxAttempts?: number;
        maxDelay?: number;
    }

    Properties

    backoffFactor?: number

    Multiplier by which the delay increases after each attempt. If not specified, defaults to 2.0.

    exceptions?: (string | ErrorClass)[] | null

    Exceptions to retry on. Accepts error class names as strings (e.g. ['TypeError']) or error classes directly (e.g. [TypeError]). undefined/null means retry on all errors.

    initialDelay?: number

    Initial delay before the first retry, in seconds. If not specified, defaults to 1.0 second.

    jitter?: number

    Randomness factor for the delay. If not specified, defaults to 1.0. Use 0.0 to remove randomness.

    maxAttempts?: number

    Maximum number of attempts, including the original request. If 0 or 1, it means no retries. If not specified, defaults to 5.

    maxDelay?: number

    Maximum delay between retries, in seconds. If not specified, defaults to 60.0 seconds.