Skip to content

ADK: remove NanoSingleTextPrompt once ADK sends Gemini Nano the whole prompt #358

Closed as not planned

Description

@grabbou

On devices where ML Kit reports isSystemPromptAvailable() == false, Gemini Nano reads only the first text part of a request. One such device is a Pixel 9 Pro with AICore aicore_20260219.

ADK's GenaiPrompt sends the system instruction separately and one content per turn, so Nano answers the agent instruction ("I am the React Native ADK agent…") and never sees the user's message. Upgrading genai-prompt to 1.0.0-beta5 doesn't change this.

NanoSingleTextPrompt (#290) merges the instruction and every turn into one text part. It's the one workaround the provider keeps, because without it Gemini Nano doesn't work on these devices.

Remove it once ADK handles this itself. It may be worth reporting upstream to ADK Kotlin.

Activity

  1. grabbou commented on Oct 30, 2026

    @grabbou
    ContributorAuthor

    Closing with the ADK provider (#368). The same Gemini Nano behavior is handled in @react-native-ai/android (#367) and tracked in #364.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions