fix(deps): support google-adk>=1.32.0 (migrate optional deps to openai 2.x) by yaozheng-fang · Pull Request #597 · volcengine/veadk-python · GitHub
Skip to content

fix(deps): support google-adk>=1.32.0 (migrate optional deps to openai 2.x)#597

Merged
yaozheng-fang merged 2 commits into
mainfrom
fix/adk-deps-compat
Jun 10, 2026
Merged

fix(deps): support google-adk>=1.32.0 (migrate optional deps to openai 2.x)#597
yaozheng-fang merged 2 commits into
mainfrom
fix/adk-deps-compat

Conversation

@yaozheng-fang

@yaozheng-fang yaozheng-fang commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

What

Make veadk install & run across google-adk 1.x and 2.x (google-adk>=1.32.0).

Why

  • google-adk 2.x moved litellm and sqlalchemy behind extras
    ([extensions]/[db]). veadk uses both unconditionally (LiteLlm models,
    sessions), so a bare install on adk 2.x failed at import. Declare them
    directly in base.
  • adk's litellm (>=1.83.7) pins openai 2.x (openai==2.24.0/2.30.0),
    which clashed with veadk's optional extras that pinned openai 1.x
    (mem0ai==0.1.118openai<1.110; llama-index==0.14.0 stack →
    llama-index-llms-openai 0.5.x → openai 1.x). Resolving --all-extras was
    therefore unsatisfiable. Migrate those optional deps to openai-2.x-compatible
    versions.

Changes (pyproject.toml only)

  • google-adk>=1.32.0.
  • base: add litellm>=1.83.7,<=1.83.14, sqlalchemy>=2,<3 (adk's own ranges).
  • [extensions]: relax the llama-index* pins to >= (resolve to 0.14.22 +
    llama-index-llms-openai 0.7.9, which support openai 2.x).
  • [database]: mem0ai==0.1.118mem0ai>=1.0.0,<2. >=1.0 lifts the
    openai<1.110 cap; <2 keeps the kwargs add()/search() API veadk's
    mem0 backend uses (mem0 2.x switched to an options object — would break at
    runtime).

Verification

uv pip compile --all-extras resolves on py3.10 and py3.13. Fresh
--all-extras install (252 pkgs): google-adk 2.2.0, litellm 1.83.14,
openai 2.24.0, llama-index 0.14.22, mem0ai 1.0.11, sqlalchemy 2.0.50.

  • uv pip check → clean.
  • Module import sweep (incl. knowledgebase / long_term_memory / mem0 backend) → OK.
  • mem0.MemoryClient.add/search signatures match veadk's usage on 1.0.x.
  • Local KnowledgeBase add+search (real llama-index + Ark embedding) → correct results.
  • Real Agent invoke (Agent → Runner → Ark) → OK.

Note

Behavior change: fresh installs now resolve to google-adk 2.x. The
Agent/Runner/sessions, RAG, and mem0-signature paths are verified; reviewers may
still want to smoke-test the full RAG/long-term-memory flows against live
backends (OpenSearch/Redis/Viking/mem0).

🤖 Generated with Claude Code

google-adk 2.x moved litellm and sqlalchemy behind extras ([extensions]/[db]);
veadk uses both unconditionally (LiteLlm models, sessions). Declare them
directly and relax google-adk to >=1.32.0 so a bare install works across 1.x
and 2.x.

Verified by a fresh install: resolves google-adk 2.2.0 + litellm 1.83.14 +
sqlalchemy 2.0.50, 'uv pip check' clean, module imports + a real model invoke
all pass.
…o 2.x

google-adk 1.x shipped litellm+sqlalchemy in base and pinned openai 1.x via its
RAG deps; 2.x moved litellm/sqlalchemy behind extras and its litellm requires
openai 2.x. veadk needs litellm (LiteLlm) + sqlalchemy (sessions) unconditionally,
which forces openai 2.x and clashed with the openai-1.x pins in the optional
extras (mem0ai 0.1.118, llama-index 0.14.0 stack).

Changes:
- relax google-adk to >=1.32.0; declare litellm>=1.83.7,<=1.83.14 and
  sqlalchemy>=2,<3 in base (adk's own ranges).
- bump the openai-1.x pinned optional deps to openai-2.x compatible versions:
  llama-index* to >=, mem0ai to >=1.0.0,<2 (1.0.x keeps the kwargs add()/search()
  API veadk uses; 2.x switched to an options object).

Verified --all-extras resolves on py3.10 and py3.13 (google-adk 2.2.0, litellm
1.83.14, openai 2.24.0, llama-index 0.14.22, mem0ai 1.0.11, sqlalchemy 2.0.50);
uv pip check clean; imports, a local KnowledgeBase RAG flow, and a real model
invoke all pass.
@yaozheng-fang yaozheng-fang changed the title fix(deps): support google-adk>=1.32.0 (incl. 2.x) fix(deps): support google-adk>=1.32.0 (migrate optional deps to openai 2.x) Jun 10, 2026
@yaozheng-fang yaozheng-fang merged commit e250ee4 into main Jun 10, 2026
16 checks passed
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.

2 participants