GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • setup.py
  • tests/unit/vertex_adk
    • test_reasoning_engine_templates_adk.py
  • vertexai/preview/reasoning_engines/templates
    • adk.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎setup.py‎

Copy file name to clipboardExpand all lines: setup.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@
143143
]
144144

145145
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",
147148
]
148149

149150
reasoning_engine_extra_require = [
Collapse file

‎tests/unit/vertex_adk/test_reasoning_engine_templates_adk.py‎

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 numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def simple_span_processor_mock():
8787
def mock_adk_major_version():
8888
with mock.patch(
8989
"google.cloud.aiplatform.vertexai.preview.reasoning_engines.templates.adk.get_adk_major_version",
90-
return_value=0,
90+
return_value=1,
9191
):
9292
yield
9393

@@ -153,13 +153,13 @@ class TestAdkApp:
153153
def test_adk_major_version(self):
154154
with mock.patch(
155155
"google.cloud.aiplatform.vertexai.preview.reasoning_engines.templates.adk.get_adk_major_version",
156-
return_value=1,
156+
return_value=0,
157157
):
158158
with pytest.raises(
159159
ValueError,
160160
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."
163163
),
164164
):
165165
reasoning_engines.AdkApp(

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.