github langchain-ai/langchainjs @langchain/core@1.1.25

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

Patch Changes

  • #10002 27186c5 Thanks @aditya-gg04! - fix(core): support reasoning/thinking blocks in StringOutputParser

  • #10077 05396f7 Thanks @christian-bromann! - feat(core): add ContextOverflowError, raise in anthropic and openai

  • #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()

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.