chore(deps): update dependency google-cloud-aiplatform to v2 - #439
Open
twishabansal wants to merge 2 commits into
Open
chore(deps): update dependency google-cloud-aiplatform to v2#439twishabansal wants to merge 2 commits into
twishabansal wants to merge 2 commits into
Conversation
…tform v2 aiplatform v2's langchain extra moves langchain from 0.3 to 1.x, which relocates the legacy agent and chain APIs into the separate langchain-classic distribution that the extra now installs. Repoint the two Vertex sample templates at their new locations. Bump samples/langchain_on_vertexai/requirements.txt in lockstep. That file is passed to ReasoningEngine.create() and is what the deployed agent installs, so leaving it on v1 would resolve langchain 0.3 and fail to find langchain_classic at import time. Pin langchain-classic explicitly rather than relying on the extra to supply it. The extra's contents are exactly what shifted here -- v2 also dropped langchain-google-vertexai in favor of langchain-google-genai.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Supersedes #438 (cross-repo, so it couldn't be used as a base or pushed to). Carries renovate's bump plus the fix it needs.
aiplatform v2's
langchainextra moves langchain0.3→1.x, which relocated the legacy agent/chain APIs intolangchain-classic. Two Vertex sample templates still import from the old paths.hub,AgentExecutor,create_react_agent,create_retriever_tooland the twochainsimports atlangchain_classic. Behavior unchanged.samples/langchain_on_vertexai/requirements.txtin lockstep — it's whatReasoningEngine.create()installs, so on v1 the deployed agent wouldn't findlangchain_classic.langchain-classicexplicitly rather than relying on the extra.Issue Reference
Supersedes #438 🦕