@langchain/anthropic 0.3.30 → 0.3.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -635,6 +635,8 @@ class ChatAnthropicMessages extends chat_models_1.BaseChatModel {
635
635
  this.streaming = fields?.streaming ?? false;
636
636
  this.streamUsage = fields?.streamUsage ?? this.streamUsage;
637
637
  this.thinking = fields?.thinking ?? this.thinking;
638
+ this.contextManagement =
639
+ fields?.contextManagement ?? this.contextManagement;
638
640
  this.createClient =
639
641
  fields?.createClient ??
640
642
  ((options) => new sdk_1.Anthropic(options));
@@ -632,6 +632,8 @@ export class ChatAnthropicMessages extends BaseChatModel {
632
632
  this.streaming = fields?.streaming ?? false;
633
633
  this.streamUsage = fields?.streamUsage ?? this.streamUsage;
634
634
  this.thinking = fields?.thinking ?? this.thinking;
635
+ this.contextManagement =
636
+ fields?.contextManagement ?? this.contextManagement;
635
637
  this.createClient =
636
638
  fields?.createClient ??
637
639
  ((options) => new Anthropic(options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/anthropic",
3
- "version": "0.3.30",
3
+ "version": "0.3.31",
4
4
  "description": "Anthropic integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {