File tree Expand file tree Collapse file tree 3 files changed +227
-56
lines changed
vertexai/preview/reasoning_engines/templates Expand file tree Collapse file tree 3 files changed +227
-56
lines changed 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 = [
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 (
You can’t perform that action at this time.
0 commit comments