github langchain-ai/langchainjs @langchain/google@0.1.4

latest releases: @langchain/google-vertexai@2.1.23, @langchain/google-genai@2.1.23, @langchain/google-vertexai-web@2.1.23...
5 hours ago

Patch Changes

  • #10195 05f46ff Thanks @hntrl! - fix(google): don't send empty toolConfig when no tool_choice is specified

    When bindTools() was called without specifying tool_choice, an empty
    toolConfig: { functionCallingConfig: {} } was included in the API request.
    This caused the Gemini API to return tool invocations as text (Python code
    blocks) instead of structured functionCall parts. Now returns undefined
    when no tool_choice is set, omitting toolConfig from the request entirely
    and letting the API default to AUTO mode.

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.