X Tutup
Skip to content

fix(agent-engines): update langchain_load_dump import from langchain.load to langchain_core.load#6398

Open
ygicp wants to merge 1 commit intogoogleapis:mainfrom
ygicp:fix-langchain-dump-import
Open

fix(agent-engines): update langchain_load_dump import from langchain.load to langchain_core.load#6398
ygicp wants to merge 1 commit intogoogleapis:mainfrom
ygicp:fix-langchain-dump-import

Conversation

@ygicp
Copy link

@ygicp ygicp commented Mar 8, 2026

Changes

Source files

Updated the lazy import in both query() and stream_query() from
langchain.loadlangchain_core.load across all 4 affected template modules:

  • vertexai/agent_engines/templates/langchain.py
  • vertexai/agent_engines/templates/langgraph.py
  • vertexai/preview/reasoning_engines/templates/langchain.py
  • vertexai/preview/reasoning_engines/templates/langgraph.py

Test files

Updated the corresponding test imports to match:

  • tests/unit/vertex_langchain/test_agent_engine_templates_langchain.py
  • tests/unit/vertex_langchain/test_agent_engine_templates_langgraph.py
  • tests/unit/vertex_langchain/test_reasoning_engine_templates_langchain.py
  • tests/unit/vertex_langchain/test_reasoning_engine_templates_langgraph.py

@ygicp ygicp requested a review from a team as a code owner March 8, 2026 14:07
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup