npm / @langchain/google-common
@langchain/google-common
What changed in @langchain/google-common 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
4 new APIs and options4 behavior and defaults13 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@langchain/google-common 221 changes
New APIs and options 4
Adds the MINIMAL thinking level for Gemini 3 Flash models.
Structured output now supports standard schemas, allowing developers to use them with Google integrations.
Aborted invoke() calls during streaming throw ModelAbortError with accumulated partialOutput when using streaming callback handlers.
Gemini models now support the thinkingLevel parameter.
Behavior and default changes 4
Adds native Gemini event conversion for streamEvents.
Chat model and LLM invocation parameters are now added to traced metadata.
Packages now stamp their version into runnable metadata at construction time, making version information available in LangSmith trace metadata.
Model profiles were updated, which may affect how model capabilities are represented.
Fixes and other changes 13
Fixes the Google tool choice modes sent to Vertex AI.
Fixes endpoint routing and parameter validation for the eu multi-region location.
Automatically sets this flag when a Gemini request mixes server-side built-in tools with function declarations, avoiding an HTTP 400 response.
Guards against plain object ToolMessage content to prevent a crash.
Fixed missing stream usage metadata on Gemini.
Prevents a 400 error when an AIMessage has empty text content.
Google providers now support ContentBlock.Multimodal types.
Internal fields are stripped from text content blocks before they are sent to the Anthropic API.
Fixes empty text blocks from streaming chunks missing an index when using Claude models.
Claude Vertex formatting preserves
tool_useblocks from assistant content and deduplicates them when they also appear intool_calls.Google models now set the correct _llmType, so code relying on the model type receives the appropriate value.
Google Common and VertexAI provider operations check and propagate abort signals; stream() throws AbortError when aborted, and invoke() supports cancellation during streaming.
Zod-to-Gemini schema conversion now supports nullable object types.