langsmith 0.3.80-rc.1 → 0.3.80
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.
- package/dist/client.cjs +1 -1
- package/dist/client.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/async_caller.cjs +1 -2
- package/dist/utils/async_caller.d.ts +1 -1
- package/dist/utils/async_caller.js +1 -2
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -441,7 +441,7 @@ class Client {
|
|
|
441
441
|
// Use maxIngestMemoryBytes for both queues
|
|
442
442
|
const maxMemory = config.maxIngestMemoryBytes ?? exports.DEFAULT_MAX_SIZE_BYTES;
|
|
443
443
|
this.batchIngestCaller = new async_caller_js_1.AsyncCaller({
|
|
444
|
-
maxRetries:
|
|
444
|
+
maxRetries: 4,
|
|
445
445
|
maxConcurrency: this.traceBatchConcurrency,
|
|
446
446
|
maxQueueSizeBytes: maxMemory,
|
|
447
447
|
...(config.callerOptions ?? {}),
|
package/dist/client.js
CHANGED
|
@@ -403,7 +403,7 @@ export class Client {
|
|
|
403
403
|
// Use maxIngestMemoryBytes for both queues
|
|
404
404
|
const maxMemory = config.maxIngestMemoryBytes ?? DEFAULT_MAX_SIZE_BYTES;
|
|
405
405
|
this.batchIngestCaller = new AsyncCaller({
|
|
406
|
-
maxRetries:
|
|
406
|
+
maxRetries: 4,
|
|
407
407
|
maxConcurrency: this.traceBatchConcurrency,
|
|
408
408
|
maxQueueSizeBytes: maxMemory,
|
|
409
409
|
...(config.callerOptions ?? {}),
|
package/dist/index.cjs
CHANGED
|
@@ -13,4 +13,4 @@ var uuid_js_1 = require("./uuid.cjs");
|
|
|
13
13
|
Object.defineProperty(exports, "uuid7", { enumerable: true, get: function () { return uuid_js_1.uuid7; } });
|
|
14
14
|
Object.defineProperty(exports, "uuid7FromTime", { enumerable: true, get: function () { return uuid_js_1.uuid7FromTime; } });
|
|
15
15
|
// Update using yarn bump-version
|
|
16
|
-
exports.__version__ = "0.3.80
|
|
16
|
+
exports.__version__ = "0.3.80";
|
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export { RunTree, type RunTreeConfig } from "./run_trees.js";
|
|
|
4
4
|
export { overrideFetchImplementation } from "./singletons/fetch.js";
|
|
5
5
|
export { getDefaultProjectName } from "./utils/project.js";
|
|
6
6
|
export { uuid7, uuid7FromTime } from "./uuid.js";
|
|
7
|
-
export declare const __version__ = "0.3.80
|
|
7
|
+
export declare const __version__ = "0.3.80";
|
package/dist/index.js
CHANGED
|
@@ -4,4 +4,4 @@ export { overrideFetchImplementation } from "./singletons/fetch.js";
|
|
|
4
4
|
export { getDefaultProjectName } from "./utils/project.js";
|
|
5
5
|
export { uuid7, uuid7FromTime } from "./uuid.js";
|
|
6
6
|
// Update using yarn bump-version
|
|
7
|
-
export const __version__ = "0.3.80
|
|
7
|
+
export const __version__ = "0.3.80";
|
|
@@ -66,7 +66,7 @@ class AsyncCaller {
|
|
|
66
66
|
});
|
|
67
67
|
this.maxConcurrency = params.maxConcurrency ?? Infinity;
|
|
68
68
|
this.maxRetries = params.maxRetries ?? 6;
|
|
69
|
-
this.maxQueueSizeBytes = params.maxQueueSizeBytes
|
|
69
|
+
this.maxQueueSizeBytes = params.maxQueueSizeBytes;
|
|
70
70
|
if ("default" in p_queue_1.default) {
|
|
71
71
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
72
|
this.queue = new p_queue_1.default.default({
|
|
@@ -88,7 +88,6 @@ class AsyncCaller {
|
|
|
88
88
|
const sizeBytes = options.sizeBytes ?? 0;
|
|
89
89
|
// Check if adding this call would exceed the byte size limit
|
|
90
90
|
if (this.maxQueueSizeBytes !== undefined &&
|
|
91
|
-
this.maxQueueSizeBytes !== Infinity &&
|
|
92
91
|
sizeBytes > 0 &&
|
|
93
92
|
this.queueSizeBytes + sizeBytes > this.maxQueueSizeBytes) {
|
|
94
93
|
return Promise.reject(new Error(`Queue size limit (${this.maxQueueSizeBytes} bytes) exceeded. ` +
|
|
@@ -13,7 +13,7 @@ export interface AsyncCallerParams {
|
|
|
13
13
|
/**
|
|
14
14
|
* The maximum size of the queue buffer in bytes. When the queue reaches this size,
|
|
15
15
|
* new calls will be dropped instead of queued.
|
|
16
|
-
*
|
|
16
|
+
* If not specified, no limit is enforced.
|
|
17
17
|
*/
|
|
18
18
|
maxQueueSizeBytes?: number;
|
|
19
19
|
onFailedResponseHook?: ResponseCallback;
|
|
@@ -60,7 +60,7 @@ export class AsyncCaller {
|
|
|
60
60
|
});
|
|
61
61
|
this.maxConcurrency = params.maxConcurrency ?? Infinity;
|
|
62
62
|
this.maxRetries = params.maxRetries ?? 6;
|
|
63
|
-
this.maxQueueSizeBytes = params.maxQueueSizeBytes
|
|
63
|
+
this.maxQueueSizeBytes = params.maxQueueSizeBytes;
|
|
64
64
|
if ("default" in PQueueMod) {
|
|
65
65
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
66
66
|
this.queue = new PQueueMod.default({
|
|
@@ -82,7 +82,6 @@ export class AsyncCaller {
|
|
|
82
82
|
const sizeBytes = options.sizeBytes ?? 0;
|
|
83
83
|
// Check if adding this call would exceed the byte size limit
|
|
84
84
|
if (this.maxQueueSizeBytes !== undefined &&
|
|
85
|
-
this.maxQueueSizeBytes !== Infinity &&
|
|
86
85
|
sizeBytes > 0 &&
|
|
87
86
|
this.queueSizeBytes + sizeBytes > this.maxQueueSizeBytes) {
|
|
88
87
|
return Promise.reject(new Error(`Queue size limit (${this.maxQueueSizeBytes} bytes) exceeded. ` +
|