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

    Class ScopedFailureTracker

    Thread-safe failure counter scoped by invocation or global key.

    Constructors

    Methods

    • Gets the current failure count for an item.

      Parameters

      • scopeKey: string

        The scope identifier.

      • itemName: string

        The name of the tool or model.

      Returns Promise<number>

    • Atomically increments and returns the failure count for an item.

      Parameters

      • scopeKey: string

        The scope identifier (e.g. invocation ID or global key).

      • itemName: string

        The name of the tool or model.

      Returns Promise<number>

      The updated failure count.

    • Atomically resets the failure count for an item and cleans up state.

      Parameters

      • scopeKey: string

        The scope identifier.

      • itemName: string

        The name of the tool or model.

      Returns Promise<void>