feat(interactions): support for GenAI SDK upgraded to 2.9+#6191
Merged
Conversation
Update ADK to support the new Interactions API. See: https://ai.google.dev/gemini-api/docs/interactions-breaking-changes-may-2026 Key changes include: * Updated `interactions_utils.py` to parse new v2 interaction events such as `InteractionCreatedEvent`, `InteractionCompletedEvent`, and explicit step types (`ModelOutputStep`, `FunctionCallStep`, etc.). * Transitioned from "turns" to "steps" terminology, including renaming `convert_contents_to_turns` to `convert_contents_to_steps`. * Updated `contributing/samples/interactions_api` Breaking Changes in interactions_utils.py: - Renamed "turn" functions to "step" equivalents: - `convert_content_to_turn` -> `_convert_content_to_step` - `convert_contents_to_turns` -> `_convert_contents_to_steps` - `convert_interaction_output_to_part` -> `_convert_interaction_step_to_parts` - Updated `build_interactions_request_log` to use required `input_steps` instead of `input_turns`. - Deprecated `convert_part_to_interaction_content` Change-Id: I962724321342ba0192251896ce51832b214d60d9
Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 936123710 Change-Id: I91027f5305ee7f90781eef11aafbf28fe4a2fc7a
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Collaborator
|
Response from ADK Triaging Agent Hello @wukath, thank you for creating this PR! To help us review and process your contribution, please make sure the following guidelines from our contribution guidelines are addressed:
This information will help reviewers to review your PR more efficiently. Thanks! |
Change-Id: I57c02aa762177971a637ce3d6f256d6f46f668fe
haranrk
approved these changes
Jun 22, 2026
wuliang229
approved these changes
Jun 22, 2026
Collaborator
|
Let's make sure the tests are passing this time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-picks da1d8f1 and 9f3aeef into the v1 branch.