Skip to content

ADK: tool calling for Gemini Nano #355

Closed as not planned
Closed as not planned

Description

@grabbou

ADK's ML Kit model (GenaiPrompt in google-adk-kotlin-mlkit-android, unchanged between 1.4.0-beta and 1.5.0-beta) never sends tool declarations to ML Kit, and ML Kit's Prompt API has no function calling. The provider used to work around this by describing the tools in the instruction and parsing tool_code blocks out of Gemini Nano's text. #290 dropped that: tools passed to the provider now return an unsupported warning.

Support tool calling again once Google ships it, without our own prompt format or parser. Candidates:

  • ADK's ML Kit model gaining tool support.
  • ML Kit's com.google.mlkit:genai-agent (1.0.0-alpha1), with an Agent, AgentTools and an AgentRunner that emits function call and response events. It needs Kotlin 2.4 and genai-prompt 1.0.0-beta5, and runs instead of ADK's runner, so it needs a spike first.

Tool approval (#272) depends on this and was closed until then. It mapped the AI SDK's needsApproval to ADK's ToolContext.requestConfirmation.

Activity

  1. grabbou commented on Oct 30, 2026

    @grabbou
    ContributorAuthor

    Closing with the ADK provider (#368). @react-native-ai/android (#367) supports tool calling through the ML Kit Prompt API's function calling, which needs Gemini Nano 4; #365 tracks verifying it on a supported device.

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