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

    Interface ReflectAndRetryModelPluginOptions

    Options for configuring ReflectAndRetryModelPlugin.

    interface ReflectAndRetryModelPluginOptions {
        maxRetries?: number;
        name?: string;
        onModelErrors?: FinishReason[];
        throwExceptionIfRetryExceeded?: boolean;
        trackingScope?: TrackingScope;
    }

    Properties

    maxRetries?: number

    Maximum consecutive model failures before giving up (0 = no retries). Defaults to 3.

    name?: string

    Plugin instance identifier. Defaults to 'reflect_retry_model_plugin'.

    onModelErrors?: FinishReason[]

    A list of FinishReasons that should be treated as model errors. Defaults to [FinishReason.MALFORMED_FUNCTION_CALL].

    throwExceptionIfRetryExceeded?: boolean

    If true, raises the exception when retry limit is reached. If false, returns response. Defaults to true.

    trackingScope?: TrackingScope

    Determines the lifecycle of the error tracking state. Defaults to TrackingScope.INVOCATION.