GeezerVison is showing github.com — feat: Update AdkApp template to match ADK async interface. After this… · silverdev/python-aiplatform@e1745d7
File tree
Expand file treeCollapse file tree
Open diff view settings
vertexai/preview/reasoning_engines/templates
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: setup.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
143 | 143 | ] |
144 | 144 |
|
145 | 145 | adk_extra_require = [ |
146 | | - "google-adk >= 0.0.2, < 1.0.0", |
| 146 | + # 1.0.0 contains breaking changes, so we need to pin to 1.0.0. |
| 147 | + "google-adk >= 1.0.0, < 2.0.0", |
147 | 148 | ] |
148 | 149 |
|
149 | 150 | reasoning_engine_extra_require = [ |
|
Collapse file
Copy file name to clipboardExpand all lines: tests/unit/vertex_adk/test_reasoning_engine_templates_adk.py +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -87,7 +87,7 @@ def simple_span_processor_mock(): |
87 | 87 | def mock_adk_major_version(): |
88 | 88 | with mock.patch( |
89 | 89 | "google.cloud.aiplatform.vertexai.preview.reasoning_engines.templates.adk.get_adk_major_version", |
90 | | - return_value=0, |
| 90 | + return_value=1, |
91 | 91 | ): |
92 | 92 | yield |
93 | 93 |
|
@@ -153,13 +153,13 @@ class TestAdkApp: |
153 | 153 | def test_adk_major_version(self): |
154 | 154 | with mock.patch( |
155 | 155 | "google.cloud.aiplatform.vertexai.preview.reasoning_engines.templates.adk.get_adk_major_version", |
156 | | - return_value=1, |
| 156 | + return_value=0, |
157 | 157 | ): |
158 | 158 | with pytest.raises( |
159 | 159 | ValueError, |
160 | 160 | match=( |
161 | | - "Unsupported google-adk major version: 1, please use" |
162 | | - " google-adk<1.0.0 for AdkApp deployment." |
| 161 | + "Unsupported google-adk major version: 0, please use" |
| 162 | + " google-adk>=1.0.0 for AdkApp deployment." |
163 | 163 | ), |
164 | 164 | ): |
165 | 165 | reasoning_engines.AdkApp( |
|