Skip to content

ADK: structured output for Gemini Nano #356

Closed as not planned
Closed as not planned

Description

@grabbou

ADK's GenaiPrompt passes no response schema or JSON mode to ML Kit, so since #290 JSON output with Gemini Nano returns an unsupported warning. The previous workaround, putting the schema in the instruction and stripping Markdown fences, was dropped.

ML Kit has structured output (isStructuredOutputFeatureAvailable, GenerateTypedContentRequest, genai-schema). Support it once ADK maps responseSchema to it.

Activity

  1. grabbou commented on Oct 30, 2026

    @grabbou
    ContributorAuthor

    Closing with the ADK provider (#368). In @react-native-ai/android (#367), structured output returns an unsupported warning: ML Kit only generates it for Kotlin classes compiled with its KSP processor, not for a JSON Schema at runtime.

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