@langchain/[email protected]
langchain
View on GitHubView PackagePublished: Jun 17, 2026

Release Notes

Minor Changes

Patch Changes

  • #10676 de0958c Thanks @jackjin1997! - Auto-set toolConfig.includeServerSideToolInvocations when a Gemini request mixes server-side built-in tools (e.g. googleSearch, codeExecution) with function declarations. The Gemini API requires this flag in that case and returns HTTP 400 without it.

  • #10547 3aff161 Thanks @alex-levkivskiy! - fix(google-common): add Array.isArray guard in toolMessageToContent to prevent crash on plain object ToolMessage content