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

latest releases: langchain@1.2.25, @langchain/core@1.1.26, @langchain/ollama@1.2.3...
5 hours ago

Patch Changes

  • #10076 217d2ed Thanks @hntrl! - fix(google): accept both uppercase and lowercase reasoning effort/thinking level values

    Previously, passing uppercase values like reasoningEffort: "HIGH" or "MEDIUM" would silently
    fail to configure thinking, because convertReasoningEffortToReasoningTokens only matched lowercase
    strings. This caused the thinkingConfig to be omitted entirely from the API request.

    • Normalize effort input to lowercase in convertReasoningEffortToReasoningTokens
    • Extend Gemini.ThinkingLevel type to include lowercase variants for better DX
    • Add LowercaseLiteral utility type to derive lowercase members from the auto-generated API types
  • #10081 5a6f26b Thanks @hntrl! - feat(core): add namespace-based symbol branding for error class hierarchies

    Introduces createNamespace utility for hierarchical symbol-based branding of class hierarchies.
    All LangChain error classes now use this pattern, replacing hand-rolled duck-type isInstance checks
    with reliable cross-realm Symbol.for-based identity.

    • New LangChainError base class that all LangChain errors extend
    • New createNamespace / Namespace API in @langchain/core/utils/namespace
    • Refactored ModelAbortError, ContextOverflowError to use namespace branding
    • Added ContextOverflowError.fromError() static factory method
    • Deprecated addLangChainErrorFields in favor of LangChainError subclasses
    • Migrated Google provider errors (GoogleError, ConfigurationError, etc.) to namespace branding
    • Updated Anthropic and OpenAI providers to use ContextOverflowError.fromError()
  • #10078 7be50a7 Thanks @christian-bromann! - chore(*): update model profiles

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.