langsmith 0.1.54 → 0.1.55-rc.0
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/evaluation/_runner.cjs +15 -4
- package/dist/evaluation/_runner.js +15 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -263,11 +263,22 @@ class _ExperimentManager {
|
|
|
263
263
|
async _getProject(firstExample) {
|
|
264
264
|
let project;
|
|
265
265
|
if (!this._experiment) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
266
|
+
try {
|
|
267
|
+
const projectMetadata = await this._getExperimentMetadata();
|
|
268
|
+
project = await this._createProject(firstExample, projectMetadata);
|
|
269
|
+
this._experiment = project;
|
|
270
|
+
}
|
|
271
|
+
catch (e) {
|
|
272
|
+
if (String(e).includes("already exists")) {
|
|
273
|
+
throw e;
|
|
274
|
+
}
|
|
275
|
+
throw new Error(`Experiment ${this._experimentName} already exists. Please use a different name.`);
|
|
276
|
+
}
|
|
269
277
|
}
|
|
270
|
-
|
|
278
|
+
else {
|
|
279
|
+
project = this._experiment;
|
|
280
|
+
}
|
|
281
|
+
return project;
|
|
271
282
|
}
|
|
272
283
|
async _printExperimentStart() {
|
|
273
284
|
console.log(`Starting evaluation of experiment: ${this.experimentName}`);
|
|
@@ -259,11 +259,22 @@ export class _ExperimentManager {
|
|
|
259
259
|
async _getProject(firstExample) {
|
|
260
260
|
let project;
|
|
261
261
|
if (!this._experiment) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
try {
|
|
263
|
+
const projectMetadata = await this._getExperimentMetadata();
|
|
264
|
+
project = await this._createProject(firstExample, projectMetadata);
|
|
265
|
+
this._experiment = project;
|
|
266
|
+
}
|
|
267
|
+
catch (e) {
|
|
268
|
+
if (String(e).includes("already exists")) {
|
|
269
|
+
throw e;
|
|
270
|
+
}
|
|
271
|
+
throw new Error(`Experiment ${this._experimentName} already exists. Please use a different name.`);
|
|
272
|
+
}
|
|
265
273
|
}
|
|
266
|
-
|
|
274
|
+
else {
|
|
275
|
+
project = this._experiment;
|
|
276
|
+
}
|
|
277
|
+
return project;
|
|
267
278
|
}
|
|
268
279
|
async _printExperimentStart() {
|
|
269
280
|
console.log(`Starting evaluation of experiment: ${this.experimentName}`);
|
package/dist/index.cjs
CHANGED
|
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "RunTree", { enumerable: true, get: function () {
|
|
|
8
8
|
var fetch_js_1 = require("./singletons/fetch.cjs");
|
|
9
9
|
Object.defineProperty(exports, "overrideFetchImplementation", { enumerable: true, get: function () { return fetch_js_1.overrideFetchImplementation; } });
|
|
10
10
|
// Update using yarn bump-version
|
|
11
|
-
exports.__version__ = "0.1.
|
|
11
|
+
exports.__version__ = "0.1.53";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { Client, type ClientConfig } from "./client.js";
|
|
|
2
2
|
export type { Dataset, Example, TracerSession, Run, Feedback, RetrieverOutput, } from "./schemas.js";
|
|
3
3
|
export { RunTree, type RunTreeConfig } from "./run_trees.js";
|
|
4
4
|
export { overrideFetchImplementation } from "./singletons/fetch.js";
|
|
5
|
-
export declare const __version__ = "0.1.
|
|
5
|
+
export declare const __version__ = "0.1.53";
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langsmith",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55-rc.0",
|
|
4
4
|
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",
|
|
5
5
|
"packageManager": "yarn@1.22.19",
|
|
6
6
|
"files": [
|
|
@@ -276,4 +276,4 @@
|
|
|
276
276
|
},
|
|
277
277
|
"./package.json": "./package.json"
|
|
278
278
|
}
|
|
279
|
-
}
|
|
279
|
+
}
|