langsmith 0.1.53 → 0.1.54
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 +4 -15
- package/dist/evaluation/_runner.js +4 -15
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -263,22 +263,11 @@ class _ExperimentManager {
|
|
|
263
263
|
async _getProject(firstExample) {
|
|
264
264
|
let project;
|
|
265
265
|
if (!this._experiment) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
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
|
-
}
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
279
|
-
project = this._experiment;
|
|
266
|
+
const projectMetadata = await this._getExperimentMetadata();
|
|
267
|
+
project = await this._createProject(firstExample, projectMetadata);
|
|
268
|
+
this._experiment = project;
|
|
280
269
|
}
|
|
281
|
-
return
|
|
270
|
+
return this._experiment;
|
|
282
271
|
}
|
|
283
272
|
async _printExperimentStart() {
|
|
284
273
|
console.log(`Starting evaluation of experiment: ${this.experimentName}`);
|
|
@@ -259,22 +259,11 @@ export class _ExperimentManager {
|
|
|
259
259
|
async _getProject(firstExample) {
|
|
260
260
|
let project;
|
|
261
261
|
if (!this._experiment) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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
|
-
}
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
project = this._experiment;
|
|
262
|
+
const projectMetadata = await this._getExperimentMetadata();
|
|
263
|
+
project = await this._createProject(firstExample, projectMetadata);
|
|
264
|
+
this._experiment = project;
|
|
276
265
|
}
|
|
277
|
-
return
|
|
266
|
+
return this._experiment;
|
|
278
267
|
}
|
|
279
268
|
async _printExperimentStart() {
|
|
280
269
|
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.54";
|
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.54";
|
package/dist/index.js
CHANGED