npm / @langchain/google-vertexai
@langchain/google-vertexai
What changed in @langchain/google-vertexai 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-22.
1 breaking1 new APIs and options1 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@langchain/google-vertexai 26 changes
Breaking changes 1
Aborted streaming invocations through invoke() throw ModelAbortError with accumulated partialOutput when streaming callback handlers are used.
New APIs and options 1
Adds LangSmith gateway routing in the Node and web packages, including streaming, custom gateway URLs, and explicit regional project configuration.
Behavior and default changes 1
Runnable construction now stamps package version metadata into traces, making version information available in LangSmith trace metadata.
Fixes and other changes 3
Vertex Express requests now honor custom endpoints.
When a stream is aborted, stream() throws a regular AbortError because chunks have already been yielded to the caller.
Gemini tools now handle unsupported Zod schema features.
@langchain/google-vertexai 11 changes
Fixes and other changes 1
Fixes compatibility with moduleResolution: "node".