langsmith 0.3.33 → 0.3.34
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/index.cjs
CHANGED
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "overrideFetchImplementation", { enumerable: true
|
|
|
10
10
|
var project_js_1 = require("./utils/project.cjs");
|
|
11
11
|
Object.defineProperty(exports, "getDefaultProjectName", { enumerable: true, get: function () { return project_js_1.getDefaultProjectName; } });
|
|
12
12
|
// Update using yarn bump-version
|
|
13
|
-
exports.__version__ = "0.3.
|
|
13
|
+
exports.__version__ = "0.3.34";
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export type { Dataset, Example, TracerSession, Run, Feedback, RetrieverOutput, }
|
|
|
3
3
|
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
|
-
export declare const __version__ = "0.3.
|
|
6
|
+
export declare const __version__ = "0.3.34";
|
package/dist/index.js
CHANGED
|
@@ -3,4 +3,4 @@ export { RunTree } from "./run_trees.js";
|
|
|
3
3
|
export { overrideFetchImplementation } from "./singletons/fetch.js";
|
|
4
4
|
export { getDefaultProjectName } from "./utils/project.js";
|
|
5
5
|
// Update using yarn bump-version
|
|
6
|
-
export const __version__ = "0.3.
|
|
6
|
+
export const __version__ = "0.3.34";
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.serialize = serialize;
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
|
+
const env_js_1 = require("../../utils/env.cjs");
|
|
6
7
|
var LIMIT_REPLACE_NODE = "[...]";
|
|
7
8
|
var CIRCULAR_REPLACE_NODE = { result: "[Circular]" };
|
|
8
9
|
var arr = [];
|
|
@@ -29,7 +30,9 @@ function serialize(obj, errorContext, replacer, spacer, options) {
|
|
|
29
30
|
console.warn(`[WARNING]: LangSmith received unserializable value.${errorContext ? `\nContext: ${errorContext}` : ""}`);
|
|
30
31
|
return encodeString("[Unserializable]");
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
(0, env_js_1.getLangSmithEnvironmentVariable)("SUPPRESS_CIRCULAR_JSON_WARNINGS") !==
|
|
34
|
+
"true" &&
|
|
35
|
+
console.warn(`[WARNING]: LangSmith received circular JSON. This will decrease tracer performance. ${errorContext ? `\nContext: ${errorContext}` : ""}`);
|
|
33
36
|
if (typeof options === "undefined") {
|
|
34
37
|
options = defaultOptions();
|
|
35
38
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// @ts-nocheck
|
|
3
|
+
import { getLangSmithEnvironmentVariable } from "../../utils/env.js";
|
|
3
4
|
var LIMIT_REPLACE_NODE = "[...]";
|
|
4
5
|
var CIRCULAR_REPLACE_NODE = { result: "[Circular]" };
|
|
5
6
|
var arr = [];
|
|
@@ -26,7 +27,9 @@ export function serialize(obj, errorContext, replacer, spacer, options) {
|
|
|
26
27
|
console.warn(`[WARNING]: LangSmith received unserializable value.${errorContext ? `\nContext: ${errorContext}` : ""}`);
|
|
27
28
|
return encodeString("[Unserializable]");
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
+
getLangSmithEnvironmentVariable("SUPPRESS_CIRCULAR_JSON_WARNINGS") !==
|
|
31
|
+
"true" &&
|
|
32
|
+
console.warn(`[WARNING]: LangSmith received circular JSON. This will decrease tracer performance. ${errorContext ? `\nContext: ${errorContext}` : ""}`);
|
|
30
33
|
if (typeof options === "undefined") {
|
|
31
34
|
options = defaultOptions();
|
|
32
35
|
}
|