Patch Changes
-
#10077
05396f7Thanks @christian-bromann! - feat(core): add ContextOverflowError, raise in anthropic and openai -
#10081
5a6f26bThanks @hntrl! - feat(core): add namespace-based symbol branding for error class hierarchiesIntroduces
createNamespaceutility for hierarchical symbol-based branding of class hierarchies.
All LangChain error classes now use this pattern, replacing hand-rolled duck-typeisInstancechecks
with reliable cross-realmSymbol.for-based identity.- New
LangChainErrorbase class that all LangChain errors extend - New
createNamespace/NamespaceAPI in@langchain/core/utils/namespace - Refactored
ModelAbortError,ContextOverflowErrorto use namespace branding - Added
ContextOverflowError.fromError()static factory method - Deprecated
addLangChainErrorFieldsin favor ofLangChainErrorsubclasses - Migrated Google provider errors (
GoogleError,ConfigurationError, etc.) to namespace branding - Updated Anthropic and OpenAI providers to use
ContextOverflowError.fromError()
- New
-
#10078
7be50a7Thanks @christian-bromann! - chore(*): update model profiles -
Updated dependencies [
27186c5,05396f7,5a6f26b]:- @langchain/core@1.1.25