Socket
Socket
Sign inDemoInstall

langsmith

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

langsmith - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

10

dist/client.d.ts

@@ -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 @@ }

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc