adk-java icon indicating copy to clipboard operation
adk-java copied to clipboard

Add Interactions API support to adk-java

Open prasadskarmarkar opened this issue 10 months ago • 4 comments

Description:

Interactions API ( https://blog.google/innovation-and-ai/technology/developers-tools/interactions-api/) provides a unified interface for interacting with Gemini models and agents with stateful multi-turn conversations and server-side history management.

This feature is already available in adk-python (since v1.21.0) but is currently missing in adk-java, creating a feature parity gap between the two SDKs.

Proposed Solution

Add support for the Interactions API in adk-java, similar to how it's implemented in adk-python with the use_interactions_api=True parameter in the Agent configuration.

Additional context

  • https://blog.google/innovation-and-ai/technology/developers-tools/interactions-api/
  • https://developers.googleblog.com/building-agents-with-the-adk-and-the-new-interactions-api/
  • https://github.com/google/adk-python/tree/main/contributing/samples/interactions_api

prasadskarmarkar avatar Jan 29 '26 00:01 prasadskarmarkar

Adding a note on dependencies:

Support for the Interactions API in adk-java depends on the availability of the Interactions API in the underlying java-genai SDK.

There is already an upstream feature request for this in java-genai, and I have opened a corresponding implementation PR:

  • Feature request: https://github.com/googleapis/java-genai/issues/749
  • Implementation PR: https://github.com/googleapis/java-genai/pull/792

Once this is available in java-genai, it will unblock adding Interactions API support in adk-java.

prasadskarmarkar avatar Jan 29 '26 01:01 prasadskarmarkar

@hemasekhar-p

Update: I’ve completed an implementation of Interactions API support for adk-java and am currently testing it.

The implementation builds against the proposed java-genai support (googleapis/java-genai#792). I’ll proceed with opening a PR here shortly so the changes can be reviewed in parallel.

I also noticed the issue was recently labeled as an enhancement — please let me know if there are any roadmap considerations I should be aware of as I move forward.

prasadskarmarkar avatar Feb 12 '26 17:02 prasadskarmarkar

Hi @prasadskarmarkar, Thank you for submitting this feature request. It’s currently under review by our team, and we will keep you posted on any updates. We appreciate your input!

hemasekhar-p avatar Feb 24 '26 12:02 hemasekhar-p

@anFatum, Please have a look into it.

hemasekhar-p avatar Feb 27 '26 04:02 hemasekhar-p