langsmith 0.0.37 → 0.0.38
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 +4 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.js +4 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -347,7 +347,7 @@ class Client {
|
|
|
347
347
|
}
|
|
348
348
|
return `${this.getHostUrl()}/public/${result["share_token"]}/r`;
|
|
349
349
|
}
|
|
350
|
-
async createProject({ projectName, projectExtra, upsert, }) {
|
|
350
|
+
async createProject({ projectName, projectExtra, upsert, referenceDatasetId, }) {
|
|
351
351
|
const upsert_ = upsert ? `?upsert=true` : "";
|
|
352
352
|
const endpoint = `${this.apiUrl}/sessions${upsert_}`;
|
|
353
353
|
const body = {
|
|
@@ -356,6 +356,9 @@ class Client {
|
|
|
356
356
|
if (projectExtra !== undefined) {
|
|
357
357
|
body["extra"] = projectExtra;
|
|
358
358
|
}
|
|
359
|
+
if (referenceDatasetId !== undefined) {
|
|
360
|
+
body["reference_dataset_id"] = referenceDatasetId;
|
|
361
|
+
}
|
|
359
362
|
const response = await this.caller.call(fetch, endpoint, {
|
|
360
363
|
method: "POST",
|
|
361
364
|
headers: { ...this.headers, "Content-Type": "application/json" },
|
package/dist/client.d.ts
CHANGED
|
@@ -85,10 +85,11 @@ export declare class Client {
|
|
|
85
85
|
}): Promise<string>;
|
|
86
86
|
unshareRun(runId: string): Promise<void>;
|
|
87
87
|
readRunSharedLink(runId: string): Promise<string | undefined>;
|
|
88
|
-
createProject({ projectName, projectExtra, upsert, }: {
|
|
88
|
+
createProject({ projectName, projectExtra, upsert, referenceDatasetId, }: {
|
|
89
89
|
projectName: string;
|
|
90
90
|
projectExtra?: object;
|
|
91
91
|
upsert?: boolean;
|
|
92
|
+
referenceDatasetId?: string;
|
|
92
93
|
}): Promise<TracerSession>;
|
|
93
94
|
readProject({ projectId, projectName, }: {
|
|
94
95
|
projectId?: string;
|
package/dist/client.js
CHANGED
|
@@ -321,7 +321,7 @@ export class Client {
|
|
|
321
321
|
}
|
|
322
322
|
return `${this.getHostUrl()}/public/${result["share_token"]}/r`;
|
|
323
323
|
}
|
|
324
|
-
async createProject({ projectName, projectExtra, upsert, }) {
|
|
324
|
+
async createProject({ projectName, projectExtra, upsert, referenceDatasetId, }) {
|
|
325
325
|
const upsert_ = upsert ? `?upsert=true` : "";
|
|
326
326
|
const endpoint = `${this.apiUrl}/sessions${upsert_}`;
|
|
327
327
|
const body = {
|
|
@@ -330,6 +330,9 @@ export class Client {
|
|
|
330
330
|
if (projectExtra !== undefined) {
|
|
331
331
|
body["extra"] = projectExtra;
|
|
332
332
|
}
|
|
333
|
+
if (referenceDatasetId !== undefined) {
|
|
334
|
+
body["reference_dataset_id"] = referenceDatasetId;
|
|
335
|
+
}
|
|
333
336
|
const response = await this.caller.call(fetch, endpoint, {
|
|
334
337
|
method: "POST",
|
|
335
338
|
headers: { ...this.headers, "Content-Type": "application/json" },
|