Skip to content

feat(interactions): support for GenAI SDK upgraded to 2.9+#6191

Merged
wuliang229 merged 4 commits into
v1from
cherry-pick-v2-sdk-to-v1
Jun 22, 2026
Merged

feat(interactions): support for GenAI SDK upgraded to 2.9+#6191
wuliang229 merged 4 commits into
v1from
cherry-pick-v2-sdk-to-v1

Conversation

@wukath

@wukath wukath commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Cherry-picks da1d8f1 and 9f3aeef into the v1 branch.

haranrk and others added 2 commits June 22, 2026 17:22
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
@google-cla

google-cla Bot commented Jun 22, 2026

Copy link
Copy Markdown

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.

@adk-bot

adk-bot commented Jun 22, 2026

Copy link
Copy Markdown
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:

  • Contributor License Agreement (CLA): It looks like the CLA check has failed. Please visit https://cla.developers.google.com/ to sign the Google CLA so we can accept your pull request.
  • Issue Association: All PRs, except small documentation or typo fixes, should have an associated Issue. Please link an existing issue or create a new one. Alternatively, you can describe the bug or feature directly in the PR description following our issue templates.
  • Logs/Screenshots: Please provide logs or screenshots after the fix is applied (such as running the updated interactions sample) to help reviewers understand the changes.
  • Testing Plan: Please add a testing plan section to your PR description to outline how the changes were verified.

This information will help reviewers to review your PR more efficiently. Thanks!

@wukath wukath requested review from GWeale, haranrk and wuliang229 June 22, 2026 21:25
Change-Id: I57c02aa762177971a637ce3d6f256d6f46f668fe
@wuliang229

Copy link
Copy Markdown
Collaborator

Let's make sure the tests are passing this time.

@wuliang229 wuliang229 changed the title feat/fix(interactions): cherry-pick SDK v2.0.0 & 2.9 changes to v1 feat(interactions): support for GenAI SDK upgraded to 2.9+ Jun 22, 2026
@wuliang229 wuliang229 self-assigned this Jun 22, 2026
@wuliang229 wuliang229 merged commit 7a9152a into v1 Jun 22, 2026
9 of 10 checks passed
@wuliang229 wuliang229 deleted the cherry-pick-v2-sdk-to-v1 branch June 23, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants