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.
@@ -263,22 +263,11 @@ class _ExperimentManager {
263
263
  async _getProject(firstExample) {
264
264
  let project;
265
265
  if (!this._experiment) {
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
- }
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 project;
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
- 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
- }
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 project;
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.53";
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.53";
5
+ export declare const __version__ = "0.1.54";
package/dist/index.js CHANGED
@@ -2,4 +2,4 @@ export { Client } from "./client.js";
2
2
  export { RunTree } from "./run_trees.js";
3
3
  export { overrideFetchImplementation } from "./singletons/fetch.js";
4
4
  // Update using yarn bump-version
5
- export const __version__ = "0.1.53";
5
+ export const __version__ = "0.1.54";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langsmith",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
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": [