Repository navigation
fix(studio): use public ADK StreamingMode import - #1233
Merged
yaozheng-fang merged 3 commits intoNov 24, 2026
Merged
Conversation
yaozheng-fang
approved these changes
Nov 24, 2026
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.
Summary
StreamingModefrom the public ADK API path.dynamic_a2a.py.Background
Studio-generated projects currently pin
google-adk==2.1.0, but the generateddynamic_a2a.pyimported:That private module does not exist in
google-adk==2.1.0, causing FaaS startup to fail with:The public path is available in the generated project’s pinned ADK version and in the current repository dependency range:
Verification
uv run --extra dev pre-commit run --all-filesuv run --extra dev pytest tests/cli/test_generated_agent_backend_codegen_extended.py tests/cloud/test_harness_app_http.py tests/cli/test_generated_agent_component_matrix.py::test_a2a_registry_center_generates_tools_and_env tests/cli/test_generated_agent_component_matrix.py::test_nested_a2a_registry_agent_generates_dynamic_helper tests/integrations/agentkit/test_app.py tests/test_adk_tracing_integration.py -quv run --isolated --with google-adk==2.1.0 python - <<'PY' from google.adk.agents.run_config import StreamingMode print("ok", StreamingMode.SSE.name, StreamingMode.NONE.name) PYCompatibility
This is a non-breaking compatibility fix. It does not change generated agent behavior, A2A behavior, dependency versions, or public APIs. It only replaces a private ADK import with the public import path supported by the affected dependency versions.