@stackfactor/agent-utils 1.0.7 → 1.0.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"langChain.d.ts","sourceRoot":"","sources":["../../src/langChain.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"langChain.d.ts","sourceRoot":"","sources":["../../src/langChain.ts"],"names":[],"mappings":";wBAwaQ,MAAM,aACD,MAAM,gBACH,MAAM,SACb,GAAG,EAAE,kBACI,GAAG,UACX,GAAG,qBACO,QAAQ,GAAG,IAAI,eACrB,MAAM,eACN,MAAM,KACjB,GAAG;sBAyCG,GAAG,UACF,MAAM,UACN,GAAG,eACC,QAAQ,GAAG,IAAI,KAC1B,OAAO,CAAC,GAAG,CAAC;wCAyqBF,MAAM,UACT,GAAG,UACH,GAAG,oBACO,GAAG,KACpB,GAAG;oCA5hBO,MAAM,UACT,GAAG,UACH,GAAG,oBACO,GAAG,eACT,MAAM,eACN,MAAM,wBACG,OAAO,WACpB,GAAG,cACA,MAAM,UACV,GAAG,EAAE,KACX,OAAO,CAAC,GAAG,CAAC;sDAi1BF,MAAM,UACT,GAAG,UACH,MAAM,YACL,GAAG,KACX,OAAO,CAAC,GAAG,CAAC;0CAj5B8B,GAAG,KAAG,MAAM;;AA48BzD,wBAOE"}
|
package/dist/cjs/langChain.js
CHANGED
|
@@ -269,7 +269,9 @@ const getAIProgressTool = (onProgress, minPercent = 0, maxPercent = 100) => lang
|
|
|
269
269
|
// Clamp percent to be within minPercent and maxPercent bounds
|
|
270
270
|
const rawPct = typeof percent === "number" ? percent : 0;
|
|
271
271
|
const clampedPct = Math.max(minPercent, Math.min(maxPercent, rawPct));
|
|
272
|
-
if (onProgress
|
|
272
|
+
if (onProgress &&
|
|
273
|
+
minPercent <= clampedPct &&
|
|
274
|
+
clampedPct <= maxPercent) {
|
|
273
275
|
await onProgress({
|
|
274
276
|
progress: clampedPct,
|
|
275
277
|
message: message,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"langChain.d.ts","sourceRoot":"","sources":["../../src/langChain.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"langChain.d.ts","sourceRoot":"","sources":["../../src/langChain.ts"],"names":[],"mappings":";wBAwaQ,MAAM,aACD,MAAM,gBACH,MAAM,SACb,GAAG,EAAE,kBACI,GAAG,UACX,GAAG,qBACO,QAAQ,GAAG,IAAI,eACrB,MAAM,eACN,MAAM,KACjB,GAAG;sBAyCG,GAAG,UACF,MAAM,UACN,GAAG,eACC,QAAQ,GAAG,IAAI,KAC1B,OAAO,CAAC,GAAG,CAAC;wCAyqBF,MAAM,UACT,GAAG,UACH,GAAG,oBACO,GAAG,KACpB,GAAG;oCA5hBO,MAAM,UACT,GAAG,UACH,GAAG,oBACO,GAAG,eACT,MAAM,eACN,MAAM,wBACG,OAAO,WACpB,GAAG,cACA,MAAM,UACV,GAAG,EAAE,KACX,OAAO,CAAC,GAAG,CAAC;sDAi1BF,MAAM,UACT,GAAG,UACH,MAAM,YACL,GAAG,KACX,OAAO,CAAC,GAAG,CAAC;0CAj5B8B,GAAG,KAAG,MAAM;;AA48BzD,wBAOE"}
|
package/dist/esm/langChain.js
CHANGED
|
@@ -264,7 +264,9 @@ const getAIProgressTool = (onProgress, minPercent = 0, maxPercent = 100) => lang
|
|
|
264
264
|
// Clamp percent to be within minPercent and maxPercent bounds
|
|
265
265
|
const rawPct = typeof percent === "number" ? percent : 0;
|
|
266
266
|
const clampedPct = Math.max(minPercent, Math.min(maxPercent, rawPct));
|
|
267
|
-
if (onProgress
|
|
267
|
+
if (onProgress &&
|
|
268
|
+
minPercent <= clampedPct &&
|
|
269
|
+
clampedPct <= maxPercent) {
|
|
268
270
|
await onProgress({
|
|
269
271
|
progress: clampedPct,
|
|
270
272
|
message: message,
|