langsmith
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -14,2 +14,7 @@ import { AsyncCallerParams } from "./utils/async_caller.js"; | ||
executionOrder?: number; | ||
parentRunId?: string; | ||
referenceExampleId?: string; | ||
datasetId?: string; | ||
startTime?: Date; | ||
endTime?: Date; | ||
runType?: RunType; | ||
@@ -20,2 +25,5 @@ error?: boolean; | ||
offset?: number; | ||
query?: string; | ||
filter?: string; | ||
orderBy?: string[]; | ||
} | ||
@@ -67,3 +75,3 @@ interface UploadCSVParams { | ||
private _loadChildRuns; | ||
listRuns({ projectId, projectName, executionOrder, runType, error, id, limit, offset, }: ListRunsParams): Promise<Run[]>; | ||
listRuns({ projectId, projectName, parentRunId, referenceExampleId, datasetId, startTime, endTime, executionOrder, runType, error, id, limit, offset, query, filter, orderBy, }: ListRunsParams): Promise<Run[]>; | ||
deleteRun(runId: string): Promise<void>; | ||
@@ -70,0 +78,0 @@ createProject({ projectName, projectExtra, upsert, }: { |
@@ -149,3 +149,3 @@ import * as uuid from "uuid"; | ||
} | ||
async listRuns({ projectId, projectName, executionOrder, runType, error, id, limit, offset, }) { | ||
async listRuns({ projectId, projectName, parentRunId, referenceExampleId, datasetId, startTime, endTime, executionOrder, runType, error, id, limit, offset, query, filter, orderBy, }) { | ||
const queryParams = new URLSearchParams(); | ||
@@ -162,2 +162,17 @@ let projectId_ = projectId; | ||
} | ||
if (parentRunId) { | ||
queryParams.append("parent_run", parentRunId); | ||
} | ||
if (referenceExampleId) { | ||
queryParams.append("reference_example", referenceExampleId); | ||
} | ||
if (datasetId) { | ||
queryParams.append("dataset", datasetId); | ||
} | ||
if (startTime) { | ||
queryParams.append("start_time", startTime.toISOString()); | ||
} | ||
if (endTime) { | ||
queryParams.append("end_time", endTime.toISOString()); | ||
} | ||
if (executionOrder) { | ||
@@ -183,2 +198,11 @@ queryParams.append("execution_order", executionOrder.toString()); | ||
} | ||
if (query !== undefined) { | ||
queryParams.append("query", query); | ||
} | ||
if (filter !== undefined) { | ||
queryParams.append("filter", filter); | ||
} | ||
if (orderBy !== undefined) { | ||
orderBy.map((order) => queryParams.append("order_by", order)); | ||
} | ||
return this._get("/runs", queryParams); | ||
@@ -185,0 +209,0 @@ } |
{ | ||
"name": "langsmith", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140511
3469