@digipair/skill-openai 0.115.0 → 0.115.1

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.
Files changed (2) hide show
  1. package/dist/index.esm.js +206 -198
  2. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -7279,12 +7279,12 @@ function _array_with_holes$u(arr) {
7279
7279
  function _array_without_holes$10(arr) {
7280
7280
  if (Array.isArray(arr)) return _array_like_to_array$1e(arr);
7281
7281
  }
7282
- function _class_call_check$12(instance, Constructor) {
7282
+ function _class_call_check$11(instance, Constructor) {
7283
7283
  if (!(instance instanceof Constructor)) {
7284
7284
  throw new TypeError("Cannot call a class as a function");
7285
7285
  }
7286
7286
  }
7287
- function _defineProperties$X(target, props) {
7287
+ function _defineProperties$W(target, props) {
7288
7288
  for(var i = 0; i < props.length; i++){
7289
7289
  var descriptor = props[i];
7290
7290
  descriptor.enumerable = descriptor.enumerable || false;
@@ -7293,9 +7293,9 @@ function _defineProperties$X(target, props) {
7293
7293
  Object.defineProperty(target, descriptor.key, descriptor);
7294
7294
  }
7295
7295
  }
7296
- function _create_class$X(Constructor, protoProps, staticProps) {
7297
- if (protoProps) _defineProperties$X(Constructor.prototype, protoProps);
7298
- if (staticProps) _defineProperties$X(Constructor, staticProps);
7296
+ function _create_class$W(Constructor, protoProps, staticProps) {
7297
+ if (protoProps) _defineProperties$W(Constructor.prototype, protoProps);
7298
+ if (staticProps) _defineProperties$W(Constructor, staticProps);
7299
7299
  return Constructor;
7300
7300
  }
7301
7301
  function _define_property$1I(obj, key, value) {
@@ -7469,7 +7469,7 @@ var Serializable = /*#__PURE__*/ function() {
7469
7469
  for(var _len = arguments.length, _args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
7470
7470
  _args[_key - 1] = arguments[_key];
7471
7471
  }
7472
- _class_call_check$12(this, Serializable);
7472
+ _class_call_check$11(this, Serializable);
7473
7473
  _define_property$1I(this, "lc_serializable", false);
7474
7474
  _define_property$1I(this, "lc_kwargs", void 0);
7475
7475
  if (this.lc_serializable_keys !== void 0) this.lc_kwargs = Object.fromEntries(Object.entries(kwargs || {}).filter(function(param) {
@@ -7479,7 +7479,7 @@ var Serializable = /*#__PURE__*/ function() {
7479
7479
  }));
7480
7480
  else this.lc_kwargs = kwargs !== null && kwargs !== void 0 ? kwargs : {};
7481
7481
  }
7482
- _create_class$X(Serializable, [
7482
+ _create_class$W(Serializable, [
7483
7483
  {
7484
7484
  key: "lc_id",
7485
7485
  get: /**
@@ -9938,12 +9938,12 @@ function _assert_this_initialized$K(self) {
9938
9938
  }
9939
9939
  return self;
9940
9940
  }
9941
- function _class_call_check$11(instance, Constructor) {
9941
+ function _class_call_check$10(instance, Constructor) {
9942
9942
  if (!(instance instanceof Constructor)) {
9943
9943
  throw new TypeError("Cannot call a class as a function");
9944
9944
  }
9945
9945
  }
9946
- function _defineProperties$W(target, props) {
9946
+ function _defineProperties$V(target, props) {
9947
9947
  for(var i = 0; i < props.length; i++){
9948
9948
  var descriptor = props[i];
9949
9949
  descriptor.enumerable = descriptor.enumerable || false;
@@ -9952,9 +9952,9 @@ function _defineProperties$W(target, props) {
9952
9952
  Object.defineProperty(target, descriptor.key, descriptor);
9953
9953
  }
9954
9954
  }
9955
- function _create_class$W(Constructor, protoProps, staticProps) {
9956
- if (protoProps) _defineProperties$W(Constructor.prototype, protoProps);
9957
- if (staticProps) _defineProperties$W(Constructor, staticProps);
9955
+ function _create_class$V(Constructor, protoProps, staticProps) {
9956
+ if (protoProps) _defineProperties$V(Constructor.prototype, protoProps);
9957
+ if (staticProps) _defineProperties$V(Constructor, staticProps);
9958
9958
  return Constructor;
9959
9959
  }
9960
9960
  function _define_property$1F(obj, key, value) {
@@ -10210,7 +10210,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
10210
10210
  _inherits$K(_class, Serializable);
10211
10211
  var _super = _create_super$K(_class);
10212
10212
  function _class(arg) {
10213
- _class_call_check$11(this, _class);
10213
+ _class_call_check$10(this, _class);
10214
10214
  var _this;
10215
10215
  var fields = typeof arg === "string" || Array.isArray(arg) ? {
10216
10216
  content: arg
@@ -10247,7 +10247,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
10247
10247
  _this.id = fields.id;
10248
10248
  return _this;
10249
10249
  }
10250
- _create_class$W(_class, [
10250
+ _create_class$V(_class, [
10251
10251
  {
10252
10252
  key: "lc_aliases",
10253
10253
  get: function get() {
@@ -10483,10 +10483,10 @@ function _mergeObj(left, right) {
10483
10483
  _inherits$K(BaseMessageChunk, BaseMessage);
10484
10484
  var _super = _create_super$K(BaseMessageChunk);
10485
10485
  function BaseMessageChunk() {
10486
- _class_call_check$11(this, BaseMessageChunk);
10486
+ _class_call_check$10(this, BaseMessageChunk);
10487
10487
  return _super.apply(this, arguments);
10488
10488
  }
10489
- _create_class$W(BaseMessageChunk, null, [
10489
+ _create_class$V(BaseMessageChunk, null, [
10490
10490
  {
10491
10491
  key: "isInstance",
10492
10492
  value: function isInstance(obj) {
@@ -10588,12 +10588,12 @@ function _assert_this_initialized$J(self) {
10588
10588
  }
10589
10589
  return self;
10590
10590
  }
10591
- function _class_call_check$10(instance, Constructor) {
10591
+ function _class_call_check$$(instance, Constructor) {
10592
10592
  if (!(instance instanceof Constructor)) {
10593
10593
  throw new TypeError("Cannot call a class as a function");
10594
10594
  }
10595
10595
  }
10596
- function _defineProperties$V(target, props) {
10596
+ function _defineProperties$U(target, props) {
10597
10597
  for(var i = 0; i < props.length; i++){
10598
10598
  var descriptor = props[i];
10599
10599
  descriptor.enumerable = descriptor.enumerable || false;
@@ -10602,9 +10602,9 @@ function _defineProperties$V(target, props) {
10602
10602
  Object.defineProperty(target, descriptor.key, descriptor);
10603
10603
  }
10604
10604
  }
10605
- function _create_class$V(Constructor, protoProps, staticProps) {
10606
- if (protoProps) _defineProperties$V(Constructor.prototype, protoProps);
10607
- if (staticProps) _defineProperties$V(Constructor, staticProps);
10605
+ function _create_class$U(Constructor, protoProps, staticProps) {
10606
+ if (protoProps) _defineProperties$U(Constructor.prototype, protoProps);
10607
+ if (staticProps) _defineProperties$U(Constructor, staticProps);
10608
10608
  return Constructor;
10609
10609
  }
10610
10610
  function _define_property$1D(obj, key, value) {
@@ -10768,7 +10768,7 @@ function isDirectToolOutput(x) {
10768
10768
  _inherits$J(ToolMessage, BaseMessage);
10769
10769
  var _super = _create_super$J(ToolMessage);
10770
10770
  function ToolMessage(fields, tool_call_id, name) {
10771
- _class_call_check$10(this, ToolMessage);
10771
+ _class_call_check$$(this, ToolMessage);
10772
10772
  var _this;
10773
10773
  var toolMessageFields = typeof fields === "string" || Array.isArray(fields) ? {
10774
10774
  content: fields,
@@ -10797,7 +10797,7 @@ function isDirectToolOutput(x) {
10797
10797
  _this.metadata = toolMessageFields.metadata;
10798
10798
  return _this;
10799
10799
  }
10800
- _create_class$V(ToolMessage, [
10800
+ _create_class$U(ToolMessage, [
10801
10801
  {
10802
10802
  key: "lc_aliases",
10803
10803
  get: function get() {
@@ -10838,7 +10838,7 @@ function isDirectToolOutput(x) {
10838
10838
  _inherits$J(ToolMessageChunk, BaseMessageChunk);
10839
10839
  var _super = _create_super$J(ToolMessageChunk);
10840
10840
  function ToolMessageChunk(fields) {
10841
- _class_call_check$10(this, ToolMessageChunk);
10841
+ _class_call_check$$(this, ToolMessageChunk);
10842
10842
  var _this;
10843
10843
  _this = _super.call(this, fields);
10844
10844
  _define_property$1D(_assert_this_initialized$J(_this), "type", "tool");
@@ -10859,7 +10859,7 @@ function isDirectToolOutput(x) {
10859
10859
  _this.status = fields.status;
10860
10860
  return _this;
10861
10861
  }
10862
- _create_class$V(ToolMessageChunk, [
10862
+ _create_class$U(ToolMessageChunk, [
10863
10863
  {
10864
10864
  key: "concat",
10865
10865
  value: function concat(chunk) {
@@ -12266,12 +12266,12 @@ function _assert_this_initialized$I(self) {
12266
12266
  }
12267
12267
  return self;
12268
12268
  }
12269
- function _class_call_check$$(instance, Constructor) {
12269
+ function _class_call_check$_(instance, Constructor) {
12270
12270
  if (!(instance instanceof Constructor)) {
12271
12271
  throw new TypeError("Cannot call a class as a function");
12272
12272
  }
12273
12273
  }
12274
- function _defineProperties$U(target, props) {
12274
+ function _defineProperties$T(target, props) {
12275
12275
  for(var i = 0; i < props.length; i++){
12276
12276
  var descriptor = props[i];
12277
12277
  descriptor.enumerable = descriptor.enumerable || false;
@@ -12280,9 +12280,9 @@ function _defineProperties$U(target, props) {
12280
12280
  Object.defineProperty(target, descriptor.key, descriptor);
12281
12281
  }
12282
12282
  }
12283
- function _create_class$U(Constructor, protoProps, staticProps) {
12284
- if (protoProps) _defineProperties$U(Constructor.prototype, protoProps);
12285
- if (staticProps) _defineProperties$U(Constructor, staticProps);
12283
+ function _create_class$T(Constructor, protoProps, staticProps) {
12284
+ if (protoProps) _defineProperties$T(Constructor.prototype, protoProps);
12285
+ if (staticProps) _defineProperties$T(Constructor, staticProps);
12286
12286
  return Constructor;
12287
12287
  }
12288
12288
  function _define_property$1B(obj, key, value) {
@@ -12467,7 +12467,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
12467
12467
  _inherits$I(AIMessage, BaseMessage);
12468
12468
  var _super = _create_super$I(AIMessage);
12469
12469
  function AIMessage(fields) {
12470
- _class_call_check$$(this, AIMessage);
12470
+ _class_call_check$_(this, AIMessage);
12471
12471
  var _this;
12472
12472
  var initParams;
12473
12473
  if (typeof fields === "string" || Array.isArray(fields)) initParams = {
@@ -12548,7 +12548,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
12548
12548
  _this.usage_metadata = initParams.usage_metadata;
12549
12549
  return _this;
12550
12550
  }
12551
- _create_class$U(AIMessage, [
12551
+ _create_class$T(AIMessage, [
12552
12552
  {
12553
12553
  key: "lc_aliases",
12554
12554
  get: function get() {
@@ -12629,7 +12629,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
12629
12629
  _inherits$I(AIMessageChunk, BaseMessageChunk);
12630
12630
  var _super = _create_super$I(AIMessageChunk);
12631
12631
  function AIMessageChunk(fields) {
12632
- _class_call_check$$(this, AIMessageChunk);
12632
+ _class_call_check$_(this, AIMessageChunk);
12633
12633
  var _this;
12634
12634
  var initParams;
12635
12635
  var _fields_tool_calls;
@@ -12731,7 +12731,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
12731
12731
  _this.usage_metadata = initParams.usage_metadata;
12732
12732
  return _this;
12733
12733
  }
12734
- _create_class$U(AIMessageChunk, [
12734
+ _create_class$T(AIMessageChunk, [
12735
12735
  {
12736
12736
  key: "lc_aliases",
12737
12737
  get: function get() {
@@ -12842,12 +12842,12 @@ function _assert_this_initialized$H(self) {
12842
12842
  }
12843
12843
  return self;
12844
12844
  }
12845
- function _class_call_check$_(instance, Constructor) {
12845
+ function _class_call_check$Z(instance, Constructor) {
12846
12846
  if (!(instance instanceof Constructor)) {
12847
12847
  throw new TypeError("Cannot call a class as a function");
12848
12848
  }
12849
12849
  }
12850
- function _defineProperties$T(target, props) {
12850
+ function _defineProperties$S(target, props) {
12851
12851
  for(var i = 0; i < props.length; i++){
12852
12852
  var descriptor = props[i];
12853
12853
  descriptor.enumerable = descriptor.enumerable || false;
@@ -12856,9 +12856,9 @@ function _defineProperties$T(target, props) {
12856
12856
  Object.defineProperty(target, descriptor.key, descriptor);
12857
12857
  }
12858
12858
  }
12859
- function _create_class$T(Constructor, protoProps, staticProps) {
12860
- if (protoProps) _defineProperties$T(Constructor.prototype, protoProps);
12861
- if (staticProps) _defineProperties$T(Constructor, staticProps);
12859
+ function _create_class$S(Constructor, protoProps, staticProps) {
12860
+ if (protoProps) _defineProperties$S(Constructor.prototype, protoProps);
12861
+ if (staticProps) _defineProperties$S(Constructor, staticProps);
12862
12862
  return Constructor;
12863
12863
  }
12864
12864
  function _define_property$1A(obj, key, value) {
@@ -12998,7 +12998,7 @@ function _create_super$H(Derived) {
12998
12998
  _inherits$H(ChatMessage, BaseMessage);
12999
12999
  var _super = _create_super$H(ChatMessage);
13000
13000
  function ChatMessage(fields, role) {
13001
- _class_call_check$_(this, ChatMessage);
13001
+ _class_call_check$Z(this, ChatMessage);
13002
13002
  var _this;
13003
13003
  if (typeof fields === "string" || Array.isArray(fields)) fields = {
13004
13004
  content: fields,
@@ -13010,7 +13010,7 @@ function _create_super$H(Derived) {
13010
13010
  _this.role = fields.role;
13011
13011
  return _this;
13012
13012
  }
13013
- _create_class$T(ChatMessage, [
13013
+ _create_class$S(ChatMessage, [
13014
13014
  {
13015
13015
  key: "_printableFields",
13016
13016
  get: function get() {
@@ -13048,7 +13048,7 @@ function _create_super$H(Derived) {
13048
13048
  _inherits$H(ChatMessageChunk, BaseMessageChunk);
13049
13049
  var _super = _create_super$H(ChatMessageChunk);
13050
13050
  function ChatMessageChunk(fields, role) {
13051
- _class_call_check$_(this, ChatMessageChunk);
13051
+ _class_call_check$Z(this, ChatMessageChunk);
13052
13052
  var _this;
13053
13053
  if (typeof fields === "string" || Array.isArray(fields)) fields = {
13054
13054
  content: fields,
@@ -13060,7 +13060,7 @@ function _create_super$H(Derived) {
13060
13060
  _this.role = fields.role;
13061
13061
  return _this;
13062
13062
  }
13063
- _create_class$T(ChatMessageChunk, [
13063
+ _create_class$S(ChatMessageChunk, [
13064
13064
  {
13065
13065
  key: "concat",
13066
13066
  value: function concat(chunk) {
@@ -13116,12 +13116,12 @@ function _assert_this_initialized$G(self) {
13116
13116
  }
13117
13117
  return self;
13118
13118
  }
13119
- function _class_call_check$Z(instance, Constructor) {
13119
+ function _class_call_check$Y(instance, Constructor) {
13120
13120
  if (!(instance instanceof Constructor)) {
13121
13121
  throw new TypeError("Cannot call a class as a function");
13122
13122
  }
13123
13123
  }
13124
- function _defineProperties$S(target, props) {
13124
+ function _defineProperties$R(target, props) {
13125
13125
  for(var i = 0; i < props.length; i++){
13126
13126
  var descriptor = props[i];
13127
13127
  descriptor.enumerable = descriptor.enumerable || false;
@@ -13130,9 +13130,9 @@ function _defineProperties$S(target, props) {
13130
13130
  Object.defineProperty(target, descriptor.key, descriptor);
13131
13131
  }
13132
13132
  }
13133
- function _create_class$S(Constructor, protoProps, staticProps) {
13134
- if (protoProps) _defineProperties$S(Constructor.prototype, protoProps);
13135
- if (staticProps) _defineProperties$S(Constructor, staticProps);
13133
+ function _create_class$R(Constructor, protoProps, staticProps) {
13134
+ if (protoProps) _defineProperties$R(Constructor.prototype, protoProps);
13135
+ if (staticProps) _defineProperties$R(Constructor, staticProps);
13136
13136
  return Constructor;
13137
13137
  }
13138
13138
  function _define_property$1z(obj, key, value) {
@@ -13215,7 +13215,7 @@ function _create_super$G(Derived) {
13215
13215
  _inherits$G(FunctionMessage, BaseMessage);
13216
13216
  var _super = _create_super$G(FunctionMessage);
13217
13217
  function FunctionMessage(fields) {
13218
- _class_call_check$Z(this, FunctionMessage);
13218
+ _class_call_check$Y(this, FunctionMessage);
13219
13219
  var _this;
13220
13220
  _this = _super.call(this, fields);
13221
13221
  _define_property$1z(_assert_this_initialized$G(_this), "type", "function");
@@ -13223,7 +13223,7 @@ function _create_super$G(Derived) {
13223
13223
  _this.name = fields.name;
13224
13224
  return _this;
13225
13225
  }
13226
- _create_class$S(FunctionMessage, null, [
13226
+ _create_class$R(FunctionMessage, null, [
13227
13227
  {
13228
13228
  key: "lc_name",
13229
13229
  value: function lc_name() {
@@ -13240,13 +13240,13 @@ function _create_super$G(Derived) {
13240
13240
  _inherits$G(FunctionMessageChunk, BaseMessageChunk);
13241
13241
  var _super = _create_super$G(FunctionMessageChunk);
13242
13242
  function FunctionMessageChunk() {
13243
- _class_call_check$Z(this, FunctionMessageChunk);
13243
+ _class_call_check$Y(this, FunctionMessageChunk);
13244
13244
  var _this;
13245
13245
  _this = _super.apply(this, arguments);
13246
13246
  _define_property$1z(_assert_this_initialized$G(_this), "type", "function");
13247
13247
  return _this;
13248
13248
  }
13249
- _create_class$S(FunctionMessageChunk, [
13249
+ _create_class$R(FunctionMessageChunk, [
13250
13250
  {
13251
13251
  key: "concat",
13252
13252
  value: function concat(chunk) {
@@ -13284,12 +13284,12 @@ function _assert_this_initialized$F(self) {
13284
13284
  }
13285
13285
  return self;
13286
13286
  }
13287
- function _class_call_check$Y(instance, Constructor) {
13287
+ function _class_call_check$X(instance, Constructor) {
13288
13288
  if (!(instance instanceof Constructor)) {
13289
13289
  throw new TypeError("Cannot call a class as a function");
13290
13290
  }
13291
13291
  }
13292
- function _defineProperties$R(target, props) {
13292
+ function _defineProperties$Q(target, props) {
13293
13293
  for(var i = 0; i < props.length; i++){
13294
13294
  var descriptor = props[i];
13295
13295
  descriptor.enumerable = descriptor.enumerable || false;
@@ -13298,9 +13298,9 @@ function _defineProperties$R(target, props) {
13298
13298
  Object.defineProperty(target, descriptor.key, descriptor);
13299
13299
  }
13300
13300
  }
13301
- function _create_class$R(Constructor, protoProps, staticProps) {
13302
- if (protoProps) _defineProperties$R(Constructor.prototype, protoProps);
13303
- if (staticProps) _defineProperties$R(Constructor, staticProps);
13301
+ function _create_class$Q(Constructor, protoProps, staticProps) {
13302
+ if (protoProps) _defineProperties$Q(Constructor.prototype, protoProps);
13303
+ if (staticProps) _defineProperties$Q(Constructor, staticProps);
13304
13304
  return Constructor;
13305
13305
  }
13306
13306
  function _define_property$1y(obj, key, value) {
@@ -13406,13 +13406,13 @@ function _create_super$F(Derived) {
13406
13406
  _inherits$F(HumanMessage, BaseMessage);
13407
13407
  var _super = _create_super$F(HumanMessage);
13408
13408
  function HumanMessage(fields) {
13409
- _class_call_check$Y(this, HumanMessage);
13409
+ _class_call_check$X(this, HumanMessage);
13410
13410
  var _this;
13411
13411
  _this = _super.call(this, fields);
13412
13412
  _define_property$1y(_assert_this_initialized$F(_this), "type", "human");
13413
13413
  return _this;
13414
13414
  }
13415
- _create_class$R(HumanMessage, null, [
13415
+ _create_class$Q(HumanMessage, null, [
13416
13416
  {
13417
13417
  key: "lc_name",
13418
13418
  value: function lc_name() {
@@ -13435,13 +13435,13 @@ function _create_super$F(Derived) {
13435
13435
  _inherits$F(HumanMessageChunk, BaseMessageChunk);
13436
13436
  var _super = _create_super$F(HumanMessageChunk);
13437
13437
  function HumanMessageChunk(fields) {
13438
- _class_call_check$Y(this, HumanMessageChunk);
13438
+ _class_call_check$X(this, HumanMessageChunk);
13439
13439
  var _this;
13440
13440
  _this = _super.call(this, fields);
13441
13441
  _define_property$1y(_assert_this_initialized$F(_this), "type", "human");
13442
13442
  return _this;
13443
13443
  }
13444
- _create_class$R(HumanMessageChunk, [
13444
+ _create_class$Q(HumanMessageChunk, [
13445
13445
  {
13446
13446
  key: "concat",
13447
13447
  value: function concat(chunk) {
@@ -13488,12 +13488,12 @@ function _assert_this_initialized$E(self) {
13488
13488
  }
13489
13489
  return self;
13490
13490
  }
13491
- function _class_call_check$X(instance, Constructor) {
13491
+ function _class_call_check$W(instance, Constructor) {
13492
13492
  if (!(instance instanceof Constructor)) {
13493
13493
  throw new TypeError("Cannot call a class as a function");
13494
13494
  }
13495
13495
  }
13496
- function _defineProperties$Q(target, props) {
13496
+ function _defineProperties$P(target, props) {
13497
13497
  for(var i = 0; i < props.length; i++){
13498
13498
  var descriptor = props[i];
13499
13499
  descriptor.enumerable = descriptor.enumerable || false;
@@ -13502,9 +13502,9 @@ function _defineProperties$Q(target, props) {
13502
13502
  Object.defineProperty(target, descriptor.key, descriptor);
13503
13503
  }
13504
13504
  }
13505
- function _create_class$Q(Constructor, protoProps, staticProps) {
13506
- if (protoProps) _defineProperties$Q(Constructor.prototype, protoProps);
13507
- if (staticProps) _defineProperties$Q(Constructor, staticProps);
13505
+ function _create_class$P(Constructor, protoProps, staticProps) {
13506
+ if (protoProps) _defineProperties$P(Constructor.prototype, protoProps);
13507
+ if (staticProps) _defineProperties$P(Constructor, staticProps);
13508
13508
  return Constructor;
13509
13509
  }
13510
13510
  function _define_property$1x(obj, key, value) {
@@ -13610,13 +13610,13 @@ function _create_super$E(Derived) {
13610
13610
  _inherits$E(SystemMessage, BaseMessage);
13611
13611
  var _super = _create_super$E(SystemMessage);
13612
13612
  function SystemMessage(fields) {
13613
- _class_call_check$X(this, SystemMessage);
13613
+ _class_call_check$W(this, SystemMessage);
13614
13614
  var _this;
13615
13615
  _this = _super.call(this, fields);
13616
13616
  _define_property$1x(_assert_this_initialized$E(_this), "type", "system");
13617
13617
  return _this;
13618
13618
  }
13619
- _create_class$Q(SystemMessage, null, [
13619
+ _create_class$P(SystemMessage, null, [
13620
13620
  {
13621
13621
  key: "lc_name",
13622
13622
  value: function lc_name() {
@@ -13639,13 +13639,13 @@ function _create_super$E(Derived) {
13639
13639
  _inherits$E(SystemMessageChunk, BaseMessageChunk);
13640
13640
  var _super = _create_super$E(SystemMessageChunk);
13641
13641
  function SystemMessageChunk(fields) {
13642
- _class_call_check$X(this, SystemMessageChunk);
13642
+ _class_call_check$W(this, SystemMessageChunk);
13643
13643
  var _this;
13644
13644
  _this = _super.call(this, fields);
13645
13645
  _define_property$1x(_assert_this_initialized$E(_this), "type", "system");
13646
13646
  return _this;
13647
13647
  }
13648
- _create_class$Q(SystemMessageChunk, [
13648
+ _create_class$P(SystemMessageChunk, [
13649
13649
  {
13650
13650
  key: "concat",
13651
13651
  value: function concat(chunk) {
@@ -13692,12 +13692,12 @@ function _assert_this_initialized$D(self) {
13692
13692
  }
13693
13693
  return self;
13694
13694
  }
13695
- function _class_call_check$W(instance, Constructor) {
13695
+ function _class_call_check$V(instance, Constructor) {
13696
13696
  if (!(instance instanceof Constructor)) {
13697
13697
  throw new TypeError("Cannot call a class as a function");
13698
13698
  }
13699
13699
  }
13700
- function _defineProperties$P(target, props) {
13700
+ function _defineProperties$O(target, props) {
13701
13701
  for(var i = 0; i < props.length; i++){
13702
13702
  var descriptor = props[i];
13703
13703
  descriptor.enumerable = descriptor.enumerable || false;
@@ -13706,9 +13706,9 @@ function _defineProperties$P(target, props) {
13706
13706
  Object.defineProperty(target, descriptor.key, descriptor);
13707
13707
  }
13708
13708
  }
13709
- function _create_class$P(Constructor, protoProps, staticProps) {
13710
- if (protoProps) _defineProperties$P(Constructor.prototype, protoProps);
13711
- if (staticProps) _defineProperties$P(Constructor, staticProps);
13709
+ function _create_class$O(Constructor, protoProps, staticProps) {
13710
+ if (protoProps) _defineProperties$O(Constructor.prototype, protoProps);
13711
+ if (staticProps) _defineProperties$O(Constructor, staticProps);
13712
13712
  return Constructor;
13713
13713
  }
13714
13714
  function _define_property$1w(obj, key, value) {
@@ -13848,7 +13848,7 @@ function _create_super$D(Derived) {
13848
13848
  _inherits$D(RemoveMessage, BaseMessage);
13849
13849
  var _super = _create_super$D(RemoveMessage);
13850
13850
  function RemoveMessage(fields) {
13851
- _class_call_check$W(this, RemoveMessage);
13851
+ _class_call_check$V(this, RemoveMessage);
13852
13852
  var _this;
13853
13853
  _this = _super.call(this, _object_spread_props$X(_object_spread$1d({}, fields), {
13854
13854
  content: []
@@ -13860,7 +13860,7 @@ function _create_super$D(Derived) {
13860
13860
  _this.id = fields.id;
13861
13861
  return _this;
13862
13862
  }
13863
- _create_class$P(RemoveMessage, [
13863
+ _create_class$O(RemoveMessage, [
13864
13864
  {
13865
13865
  key: "_printableFields",
13866
13866
  get: function get() {
@@ -13894,7 +13894,7 @@ function _assert_this_initialized$C(self) {
13894
13894
  }
13895
13895
  return self;
13896
13896
  }
13897
- function _class_call_check$V(instance, Constructor) {
13897
+ function _class_call_check$U(instance, Constructor) {
13898
13898
  if (!(instance instanceof Constructor)) {
13899
13899
  throw new TypeError("Cannot call a class as a function");
13900
13900
  }
@@ -14032,7 +14032,7 @@ function _configHasToolCallId(config) {
14032
14032
  _inherits$C(ToolInputParsingException, Error1);
14033
14033
  var _super = _create_super$C(ToolInputParsingException);
14034
14034
  function ToolInputParsingException(message, output) {
14035
- _class_call_check$V(this, ToolInputParsingException);
14035
+ _class_call_check$U(this, ToolInputParsingException);
14036
14036
  var _this;
14037
14037
  _this = _super.call(this, message);
14038
14038
  _define_property$1v(_assert_this_initialized$C(_this), "output", void 0);
@@ -14726,12 +14726,12 @@ function _assert_this_initialized$B(self) {
14726
14726
  }
14727
14727
  return self;
14728
14728
  }
14729
- function _class_call_check$U(instance, Constructor) {
14729
+ function _class_call_check$T(instance, Constructor) {
14730
14730
  if (!(instance instanceof Constructor)) {
14731
14731
  throw new TypeError("Cannot call a class as a function");
14732
14732
  }
14733
14733
  }
14734
- function _defineProperties$O(target, props) {
14734
+ function _defineProperties$N(target, props) {
14735
14735
  for(var i = 0; i < props.length; i++){
14736
14736
  var descriptor = props[i];
14737
14737
  descriptor.enumerable = descriptor.enumerable || false;
@@ -14740,9 +14740,9 @@ function _defineProperties$O(target, props) {
14740
14740
  Object.defineProperty(target, descriptor.key, descriptor);
14741
14741
  }
14742
14742
  }
14743
- function _create_class$O(Constructor, protoProps, staticProps) {
14744
- if (protoProps) _defineProperties$O(Constructor.prototype, protoProps);
14745
- if (staticProps) _defineProperties$O(Constructor, staticProps);
14743
+ function _create_class$N(Constructor, protoProps, staticProps) {
14744
+ if (protoProps) _defineProperties$N(Constructor.prototype, protoProps);
14745
+ if (staticProps) _defineProperties$N(Constructor, staticProps);
14746
14746
  return Constructor;
14747
14747
  }
14748
14748
  function _define_property$1t(obj, key, value) {
@@ -14853,7 +14853,7 @@ __export(base_exports$3, {
14853
14853
  * overridden in derived classes to handle various events during the
14854
14854
  * execution of a LangChain application.
14855
14855
  */ var BaseCallbackHandlerMethodsClass = function BaseCallbackHandlerMethodsClass() {
14856
- _class_call_check$U(this, BaseCallbackHandlerMethodsClass);
14856
+ _class_call_check$T(this, BaseCallbackHandlerMethodsClass);
14857
14857
  };
14858
14858
  function callbackHandlerPrefersStreaming(x) {
14859
14859
  return "lc_prefer_streaming" in x && x.lc_prefer_streaming;
@@ -14867,7 +14867,7 @@ function callbackHandlerPrefersStreaming(x) {
14867
14867
  _inherits$B(BaseCallbackHandler1, BaseCallbackHandlerMethodsClass);
14868
14868
  var _super = _create_super$B(BaseCallbackHandler1);
14869
14869
  function BaseCallbackHandler1(input) {
14870
- _class_call_check$U(this, BaseCallbackHandler1);
14870
+ _class_call_check$T(this, BaseCallbackHandler1);
14871
14871
  var _this;
14872
14872
  _this = _super.call(this);
14873
14873
  _define_property$1t(_assert_this_initialized$B(_this), "lc_serializable", false);
@@ -14898,7 +14898,7 @@ function callbackHandlerPrefersStreaming(x) {
14898
14898
  }
14899
14899
  return _this;
14900
14900
  }
14901
- _create_class$O(BaseCallbackHandler1, [
14901
+ _create_class$N(BaseCallbackHandler1, [
14902
14902
  {
14903
14903
  key: "lc_namespace",
14904
14904
  get: function get() {
@@ -14980,7 +14980,7 @@ function callbackHandlerPrefersStreaming(x) {
14980
14980
  _inherits$B(Handler, BaseCallbackHandler);
14981
14981
  var _super = _create_super$B(Handler);
14982
14982
  function Handler() {
14983
- _class_call_check$U(this, Handler);
14983
+ _class_call_check$T(this, Handler);
14984
14984
  var _this;
14985
14985
  _this = _super.call(this);
14986
14986
  _define_property$1t(_assert_this_initialized$B(_this), "name", v4());
@@ -15580,12 +15580,12 @@ function getOtelEnabled() {
15580
15580
  }
15581
15581
 
15582
15582
  // Should not import any OTEL packages to avoid pulling in optional deps.
15583
- function _class_call_check$T(instance, Constructor) {
15583
+ function _class_call_check$S(instance, Constructor) {
15584
15584
  if (!(instance instanceof Constructor)) {
15585
15585
  throw new TypeError("Cannot call a class as a function");
15586
15586
  }
15587
15587
  }
15588
- function _defineProperties$N(target, props) {
15588
+ function _defineProperties$M(target, props) {
15589
15589
  for(var i = 0; i < props.length; i++){
15590
15590
  var descriptor = props[i];
15591
15591
  descriptor.enumerable = descriptor.enumerable || false;
@@ -15594,13 +15594,13 @@ function _defineProperties$N(target, props) {
15594
15594
  Object.defineProperty(target, descriptor.key, descriptor);
15595
15595
  }
15596
15596
  }
15597
- function _create_class$N(Constructor, protoProps, staticProps) {
15598
- if (protoProps) _defineProperties$N(Constructor.prototype, protoProps);
15597
+ function _create_class$M(Constructor, protoProps, staticProps) {
15598
+ if (protoProps) _defineProperties$M(Constructor.prototype, protoProps);
15599
15599
  return Constructor;
15600
15600
  }
15601
15601
  var MockTracer = /*#__PURE__*/ function() {
15602
15602
  function MockTracer() {
15603
- _class_call_check$T(this, MockTracer);
15603
+ _class_call_check$S(this, MockTracer);
15604
15604
  Object.defineProperty(this, "hasWarned", {
15605
15605
  enumerable: true,
15606
15606
  configurable: true,
@@ -15608,7 +15608,7 @@ var MockTracer = /*#__PURE__*/ function() {
15608
15608
  value: false
15609
15609
  });
15610
15610
  }
15611
- _create_class$N(MockTracer, [
15611
+ _create_class$M(MockTracer, [
15612
15612
  {
15613
15613
  key: "startActiveSpan",
15614
15614
  value: function startActiveSpan(_name) {
@@ -15642,7 +15642,7 @@ var MockTracer = /*#__PURE__*/ function() {
15642
15642
  }();
15643
15643
  var MockOTELTrace = /*#__PURE__*/ function() {
15644
15644
  function MockOTELTrace() {
15645
- _class_call_check$T(this, MockOTELTrace);
15645
+ _class_call_check$S(this, MockOTELTrace);
15646
15646
  Object.defineProperty(this, "mockTracer", {
15647
15647
  enumerable: true,
15648
15648
  configurable: true,
@@ -15650,7 +15650,7 @@ var MockOTELTrace = /*#__PURE__*/ function() {
15650
15650
  value: new MockTracer()
15651
15651
  });
15652
15652
  }
15653
- _create_class$N(MockOTELTrace, [
15653
+ _create_class$M(MockOTELTrace, [
15654
15654
  {
15655
15655
  key: "getTracer",
15656
15656
  value: function getTracer(_name, _version) {
@@ -15698,9 +15698,9 @@ var MockOTELTrace = /*#__PURE__*/ function() {
15698
15698
  }();
15699
15699
  var MockOTELContext = /*#__PURE__*/ function() {
15700
15700
  function MockOTELContext() {
15701
- _class_call_check$T(this, MockOTELContext);
15701
+ _class_call_check$S(this, MockOTELContext);
15702
15702
  }
15703
- _create_class$N(MockOTELContext, [
15703
+ _create_class$M(MockOTELContext, [
15704
15704
  {
15705
15705
  key: "active",
15706
15706
  value: function active() {
@@ -15723,9 +15723,9 @@ var mockOTELTrace = new MockOTELTrace();
15723
15723
  var mockOTELContext = new MockOTELContext();
15724
15724
  var OTELProvider = /*#__PURE__*/ function() {
15725
15725
  function OTELProvider() {
15726
- _class_call_check$T(this, OTELProvider);
15726
+ _class_call_check$S(this, OTELProvider);
15727
15727
  }
15728
- _create_class$N(OTELProvider, [
15728
+ _create_class$M(OTELProvider, [
15729
15729
  {
15730
15730
  key: "getTraceInstance",
15731
15731
  value: function getTraceInstance() {
@@ -15802,12 +15802,12 @@ function _array_like_to_array$14(arr, len) {
15802
15802
  function _array_with_holes$n(arr) {
15803
15803
  if (Array.isArray(arr)) return arr;
15804
15804
  }
15805
- function _class_call_check$S(instance, Constructor) {
15805
+ function _class_call_check$R(instance, Constructor) {
15806
15806
  if (!(instance instanceof Constructor)) {
15807
15807
  throw new TypeError("Cannot call a class as a function");
15808
15808
  }
15809
15809
  }
15810
- function _defineProperties$M(target, props) {
15810
+ function _defineProperties$L(target, props) {
15811
15811
  for(var i = 0; i < props.length; i++){
15812
15812
  var descriptor = props[i];
15813
15813
  descriptor.enumerable = descriptor.enumerable || false;
@@ -15816,8 +15816,8 @@ function _defineProperties$M(target, props) {
15816
15816
  Object.defineProperty(target, descriptor.key, descriptor);
15817
15817
  }
15818
15818
  }
15819
- function _create_class$M(Constructor, protoProps, staticProps) {
15820
- if (protoProps) _defineProperties$M(Constructor.prototype, protoProps);
15819
+ function _create_class$L(Constructor, protoProps, staticProps) {
15820
+ if (protoProps) _defineProperties$L(Constructor.prototype, protoProps);
15821
15821
  return Constructor;
15822
15822
  }
15823
15823
  function _iterable_to_array_limit$m(arr, i) {
@@ -15874,7 +15874,7 @@ function getOperationName(runType) {
15874
15874
  }
15875
15875
  var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
15876
15876
  function LangSmithToOTELTranslator() {
15877
- _class_call_check$S(this, LangSmithToOTELTranslator);
15877
+ _class_call_check$R(this, LangSmithToOTELTranslator);
15878
15878
  Object.defineProperty(this, "spans", {
15879
15879
  enumerable: true,
15880
15880
  configurable: true,
@@ -15882,7 +15882,7 @@ var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
15882
15882
  value: new Map()
15883
15883
  });
15884
15884
  }
15885
- _create_class$M(LangSmithToOTELTranslator, [
15885
+ _create_class$L(LangSmithToOTELTranslator, [
15886
15886
  {
15887
15887
  key: "exportBatch",
15888
15888
  value: function exportBatch(operations, otelContextMap) {
@@ -16621,7 +16621,7 @@ function _async_to_generator$F(fn) {
16621
16621
  });
16622
16622
  };
16623
16623
  }
16624
- function _class_call_check$R(instance, Constructor) {
16624
+ function _class_call_check$Q(instance, Constructor) {
16625
16625
  if (!(instance instanceof Constructor)) {
16626
16626
  throw new TypeError("Cannot call a class as a function");
16627
16627
  }
@@ -16873,7 +16873,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
16873
16873
  _inherits$A(AbortError, Error1);
16874
16874
  var _super = _create_super$A(AbortError);
16875
16875
  function AbortError(message) {
16876
- _class_call_check$R(this, AbortError);
16876
+ _class_call_check$Q(this, AbortError);
16877
16877
  var _this;
16878
16878
  _this = _super.call(this);
16879
16879
  if (_instanceof$n(message, Error)) {
@@ -17329,7 +17329,7 @@ function _assert_this_initialized$z(self) {
17329
17329
  }
17330
17330
  return self;
17331
17331
  }
17332
- function _class_call_check$Q(instance, Constructor) {
17332
+ function _class_call_check$P(instance, Constructor) {
17333
17333
  if (!(instance instanceof Constructor)) {
17334
17334
  throw new TypeError("Cannot call a class as a function");
17335
17335
  }
@@ -17452,7 +17452,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
17452
17452
  _inherits$z(TimeoutError, Error1);
17453
17453
  var _super = _create_super$z(TimeoutError);
17454
17454
  function TimeoutError(message) {
17455
- _class_call_check$Q(this, TimeoutError);
17455
+ _class_call_check$P(this, TimeoutError);
17456
17456
  var _this;
17457
17457
  _this = _super.call(this, message);
17458
17458
  _this.name = 'TimeoutError';
@@ -17525,12 +17525,12 @@ function lowerBound(array, value, comparator) {
17525
17525
  }
17526
17526
  lowerBound$1.default = lowerBound;
17527
17527
 
17528
- function _class_call_check$P(instance, Constructor) {
17528
+ function _class_call_check$O(instance, Constructor) {
17529
17529
  if (!(instance instanceof Constructor)) {
17530
17530
  throw new TypeError("Cannot call a class as a function");
17531
17531
  }
17532
17532
  }
17533
- function _defineProperties$L(target, props) {
17533
+ function _defineProperties$K(target, props) {
17534
17534
  for(var i = 0; i < props.length; i++){
17535
17535
  var descriptor = props[i];
17536
17536
  descriptor.enumerable = descriptor.enumerable || false;
@@ -17539,8 +17539,8 @@ function _defineProperties$L(target, props) {
17539
17539
  Object.defineProperty(target, descriptor.key, descriptor);
17540
17540
  }
17541
17541
  }
17542
- function _create_class$L(Constructor, protoProps, staticProps) {
17543
- if (protoProps) _defineProperties$L(Constructor.prototype, protoProps);
17542
+ function _create_class$K(Constructor, protoProps, staticProps) {
17543
+ if (protoProps) _defineProperties$K(Constructor.prototype, protoProps);
17544
17544
  return Constructor;
17545
17545
  }
17546
17546
  Object.defineProperty(priorityQueue, "__esModule", {
@@ -17549,10 +17549,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
17549
17549
  var lower_bound_1 = lowerBound$1;
17550
17550
  var PriorityQueue = /*#__PURE__*/ function() {
17551
17551
  function PriorityQueue() {
17552
- _class_call_check$P(this, PriorityQueue);
17552
+ _class_call_check$O(this, PriorityQueue);
17553
17553
  this._queue = [];
17554
17554
  }
17555
- _create_class$L(PriorityQueue, [
17555
+ _create_class$K(PriorityQueue, [
17556
17556
  {
17557
17557
  key: "enqueue",
17558
17558
  value: function enqueue(run, options) {
@@ -17636,12 +17636,12 @@ function _async_to_generator$E(fn) {
17636
17636
  });
17637
17637
  };
17638
17638
  }
17639
- function _class_call_check$O(instance, Constructor) {
17639
+ function _class_call_check$N(instance, Constructor) {
17640
17640
  if (!(instance instanceof Constructor)) {
17641
17641
  throw new TypeError("Cannot call a class as a function");
17642
17642
  }
17643
17643
  }
17644
- function _defineProperties$K(target, props) {
17644
+ function _defineProperties$J(target, props) {
17645
17645
  for(var i = 0; i < props.length; i++){
17646
17646
  var descriptor = props[i];
17647
17647
  descriptor.enumerable = descriptor.enumerable || false;
@@ -17650,8 +17650,8 @@ function _defineProperties$K(target, props) {
17650
17650
  Object.defineProperty(target, descriptor.key, descriptor);
17651
17651
  }
17652
17652
  }
17653
- function _create_class$K(Constructor, protoProps, staticProps) {
17654
- if (protoProps) _defineProperties$K(Constructor.prototype, protoProps);
17653
+ function _create_class$J(Constructor, protoProps, staticProps) {
17654
+ if (protoProps) _defineProperties$J(Constructor.prototype, protoProps);
17655
17655
  return Constructor;
17656
17656
  }
17657
17657
  function _get_prototype_of$y(o) {
@@ -17824,7 +17824,7 @@ Promise queue with concurrency control.
17824
17824
  _inherits$y(PQueue, EventEmitter);
17825
17825
  var _super = _create_super$y(PQueue);
17826
17826
  function PQueue(options) {
17827
- _class_call_check$O(this, PQueue);
17827
+ _class_call_check$N(this, PQueue);
17828
17828
  var _this;
17829
17829
  var _a, _b, _c, _d;
17830
17830
  _this = _super.call(this);
@@ -17860,7 +17860,7 @@ Promise queue with concurrency control.
17860
17860
  _this._isPaused = options.autoStart === false;
17861
17861
  return _this;
17862
17862
  }
17863
- _create_class$K(PQueue, [
17863
+ _create_class$J(PQueue, [
17864
17864
  {
17865
17865
  key: "_doesIntervalAllowAnother",
17866
17866
  get: function get() {
@@ -18283,12 +18283,12 @@ function _async_to_generator$D(fn) {
18283
18283
  });
18284
18284
  };
18285
18285
  }
18286
- function _class_call_check$N(instance, Constructor) {
18286
+ function _class_call_check$M(instance, Constructor) {
18287
18287
  if (!(instance instanceof Constructor)) {
18288
18288
  throw new TypeError("Cannot call a class as a function");
18289
18289
  }
18290
18290
  }
18291
- function _defineProperties$J(target, props) {
18291
+ function _defineProperties$I(target, props) {
18292
18292
  for(var i = 0; i < props.length; i++){
18293
18293
  var descriptor = props[i];
18294
18294
  descriptor.enumerable = descriptor.enumerable || false;
@@ -18297,8 +18297,8 @@ function _defineProperties$J(target, props) {
18297
18297
  Object.defineProperty(target, descriptor.key, descriptor);
18298
18298
  }
18299
18299
  }
18300
- function _create_class$J(Constructor, protoProps, staticProps) {
18301
- if (protoProps) _defineProperties$J(Constructor.prototype, protoProps);
18300
+ function _create_class$I(Constructor, protoProps, staticProps) {
18301
+ if (protoProps) _defineProperties$I(Constructor.prototype, protoProps);
18302
18302
  return Constructor;
18303
18303
  }
18304
18304
  function _instanceof$l(left, right) {
@@ -18441,7 +18441,7 @@ var STATUS_RETRYABLE = [
18441
18441
  * exponential backoff between each attempt.
18442
18442
  */ var AsyncCaller$1 = /*#__PURE__*/ function() {
18443
18443
  function AsyncCaller(params) {
18444
- _class_call_check$N(this, AsyncCaller);
18444
+ _class_call_check$M(this, AsyncCaller);
18445
18445
  Object.defineProperty(this, "maxConcurrency", {
18446
18446
  enumerable: true,
18447
18447
  configurable: true,
@@ -18483,7 +18483,7 @@ var STATUS_RETRYABLE = [
18483
18483
  }
18484
18484
  this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
18485
18485
  }
18486
- _create_class$J(AsyncCaller, [
18486
+ _create_class$I(AsyncCaller, [
18487
18487
  {
18488
18488
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
18489
18489
  key: "call",
@@ -18978,12 +18978,12 @@ var identifiers$1 = {
18978
18978
  rcompareIdentifiers: rcompareIdentifiers
18979
18979
  };
18980
18980
 
18981
- function _class_call_check$M(instance, Constructor) {
18981
+ function _class_call_check$L(instance, Constructor) {
18982
18982
  if (!(instance instanceof Constructor)) {
18983
18983
  throw new TypeError("Cannot call a class as a function");
18984
18984
  }
18985
18985
  }
18986
- function _defineProperties$I(target, props) {
18986
+ function _defineProperties$H(target, props) {
18987
18987
  for(var i = 0; i < props.length; i++){
18988
18988
  var descriptor = props[i];
18989
18989
  descriptor.enumerable = descriptor.enumerable || false;
@@ -18992,8 +18992,8 @@ function _defineProperties$I(target, props) {
18992
18992
  Object.defineProperty(target, descriptor.key, descriptor);
18993
18993
  }
18994
18994
  }
18995
- function _create_class$I(Constructor, protoProps, staticProps) {
18996
- if (protoProps) _defineProperties$I(Constructor.prototype, protoProps);
18995
+ function _create_class$H(Constructor, protoProps, staticProps) {
18996
+ if (protoProps) _defineProperties$H(Constructor.prototype, protoProps);
18997
18997
  return Constructor;
18998
18998
  }
18999
18999
  function _instanceof$k(left, right) {
@@ -19014,7 +19014,7 @@ var parseOptions = parseOptions_1;
19014
19014
  var compareIdentifiers = identifiers$1.compareIdentifiers;
19015
19015
  var SemVer$1 = /*#__PURE__*/ function() {
19016
19016
  function SemVer(version, options) {
19017
- _class_call_check$M(this, SemVer);
19017
+ _class_call_check$L(this, SemVer);
19018
19018
  options = parseOptions(options);
19019
19019
  if (_instanceof$k(version, SemVer)) {
19020
19020
  if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
@@ -19069,7 +19069,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
19069
19069
  this.build = m[5] ? m[5].split('.') : [];
19070
19070
  this.format();
19071
19071
  }
19072
- _create_class$I(SemVer, [
19072
+ _create_class$H(SemVer, [
19073
19073
  {
19074
19074
  key: "format",
19075
19075
  value: function format() {
@@ -19427,70 +19427,78 @@ var cmp_1 = cmp;
19427
19427
 
19428
19428
  var _require = reExports; _require.safeRe; _require.t;
19429
19429
 
19430
- function _class_call_check$L(instance, Constructor) {
19431
- if (!(instance instanceof Constructor)) {
19432
- throw new TypeError("Cannot call a class as a function");
19433
- }
19434
- }
19435
- function _defineProperties$H(target, props) {
19436
- for(var i = 0; i < props.length; i++){
19437
- var descriptor = props[i];
19438
- descriptor.enumerable = descriptor.enumerable || false;
19439
- descriptor.configurable = true;
19440
- if ("value" in descriptor) descriptor.writable = true;
19441
- Object.defineProperty(target, descriptor.key, descriptor);
19442
- }
19443
- }
19444
- function _create_class$H(Constructor, protoProps, staticProps) {
19445
- if (protoProps) _defineProperties$H(Constructor.prototype, protoProps);
19446
- return Constructor;
19430
+ var lrucache;
19431
+ var hasRequiredLrucache;
19432
+
19433
+ function requireLrucache () {
19434
+ if (hasRequiredLrucache) return lrucache;
19435
+ hasRequiredLrucache = 1;
19436
+ function _class_call_check(instance, Constructor) {
19437
+ if (!(instance instanceof Constructor)) {
19438
+ throw new TypeError("Cannot call a class as a function");
19439
+ }
19440
+ }
19441
+ function _defineProperties(target, props) {
19442
+ for(var i = 0; i < props.length; i++){
19443
+ var descriptor = props[i];
19444
+ descriptor.enumerable = descriptor.enumerable || false;
19445
+ descriptor.configurable = true;
19446
+ if ("value" in descriptor) descriptor.writable = true;
19447
+ Object.defineProperty(target, descriptor.key, descriptor);
19448
+ }
19449
+ }
19450
+ function _create_class(Constructor, protoProps, staticProps) {
19451
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
19452
+ return Constructor;
19453
+ }
19454
+ var LRUCache = /*#__PURE__*/ function() {
19455
+ function LRUCache() {
19456
+ _class_call_check(this, LRUCache);
19457
+ this.max = 1000;
19458
+ this.map = new Map();
19459
+ }
19460
+ _create_class(LRUCache, [
19461
+ {
19462
+ key: "get",
19463
+ value: function get(key) {
19464
+ var value = this.map.get(key);
19465
+ if (value === undefined) {
19466
+ return undefined;
19467
+ } else {
19468
+ // Remove the key from the map and add it to the end
19469
+ this.map.delete(key);
19470
+ this.map.set(key, value);
19471
+ return value;
19472
+ }
19473
+ }
19474
+ },
19475
+ {
19476
+ key: "delete",
19477
+ value: function _delete(key) {
19478
+ return this.map.delete(key);
19479
+ }
19480
+ },
19481
+ {
19482
+ key: "set",
19483
+ value: function set(key, value) {
19484
+ var deleted = this.delete(key);
19485
+ if (!deleted && value !== undefined) {
19486
+ // If cache is full, delete the least recently used item
19487
+ if (this.map.size >= this.max) {
19488
+ var firstKey = this.map.keys().next().value;
19489
+ this.delete(firstKey);
19490
+ }
19491
+ this.map.set(key, value);
19492
+ }
19493
+ return this;
19494
+ }
19495
+ }
19496
+ ]);
19497
+ return LRUCache;
19498
+ }();
19499
+ lrucache = LRUCache;
19500
+ return lrucache;
19447
19501
  }
19448
- var LRUCache = /*#__PURE__*/ function() {
19449
- function LRUCache() {
19450
- _class_call_check$L(this, LRUCache);
19451
- this.max = 1000;
19452
- this.map = new Map();
19453
- }
19454
- _create_class$H(LRUCache, [
19455
- {
19456
- key: "get",
19457
- value: function get(key) {
19458
- var value = this.map.get(key);
19459
- if (value === undefined) {
19460
- return undefined;
19461
- } else {
19462
- // Remove the key from the map and add it to the end
19463
- this.map.delete(key);
19464
- this.map.set(key, value);
19465
- return value;
19466
- }
19467
- }
19468
- },
19469
- {
19470
- key: "delete",
19471
- value: function _delete(key) {
19472
- return this.map.delete(key);
19473
- }
19474
- },
19475
- {
19476
- key: "set",
19477
- value: function set(key, value) {
19478
- var deleted = this.delete(key);
19479
- if (!deleted && value !== undefined) {
19480
- // If cache is full, delete the least recently used item
19481
- if (this.map.size >= this.max) {
19482
- var firstKey = this.map.keys().next().value;
19483
- this.delete(firstKey);
19484
- }
19485
- this.map.set(key, value);
19486
- }
19487
- return this;
19488
- }
19489
- }
19490
- ]);
19491
- return LRUCache;
19492
- }();
19493
- var lrucache = LRUCache;
19494
19502
 
19495
19503
  var range;
19496
19504
  var hasRequiredRange;
@@ -19794,7 +19802,7 @@ function requireRange () {
19794
19802
  return Range;
19795
19803
  }();
19796
19804
  range = Range;
19797
- var LRU = lrucache;
19805
+ var LRU = requireLrucache();
19798
19806
  var cache = new LRU();
19799
19807
  var parseOptions = parseOptions_1;
19800
19808
  var Comparator = requireComparator();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-openai",
3
- "version": "0.115.0",
3
+ "version": "0.115.1",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",