Skip to content

ADK: context caching for Gemini Nano #357

Closed as not planned
Closed as not planned

Description

@grabbou

ML Kit can cache prompt prefixes (PromptPrefix, cachedContextName, caches.create), but ADK's GenaiPrompt builds ML Kit requests without them. #273 rewrote ADK's requests to add them, which is the kind of workaround the provider no longer carries, so it was closed in favor of this issue.

On a Pixel 9 Pro (AICore aicore_20260219), cache creation also failed with AICore 606 FEATURE_NOT_FOUND, even though isCachingFeatureAvailable() returned true.

Revisit once ADK passes caching options through to ML Kit.

Activity

  1. grabbou commented on Oct 30, 2026

    @grabbou
    ContributorAuthor

    Closing with the ADK provider (#368). Context caching on ML Kit itself can be revisited in @react-native-ai/android (#367) if needed. On a Pixel 9 Pro, AICore's 606 FEATURE_NOT_FOUND meant its configuration wasn't downloaded yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BlockedBlocked by an external PRenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions