langsmith 0.7.14 → 0.7.16
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/_openapi_client/client.cjs +9 -1
- package/dist/_openapi_client/client.d.ts +10 -5
- package/dist/_openapi_client/client.js +9 -1
- package/dist/_openapi_client/core/pagination.cjs +29 -1
- package/dist/_openapi_client/core/pagination.d.ts +11 -0
- package/dist/_openapi_client/core/pagination.js +27 -0
- package/dist/_openapi_client/resources/datasets/datasets.cjs +0 -130
- package/dist/_openapi_client/resources/datasets/datasets.d.ts +3 -271
- package/dist/_openapi_client/resources/datasets/datasets.js +0 -130
- package/dist/_openapi_client/resources/datasets/experiment-runs.cjs +1 -1
- package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +9 -9
- package/dist/_openapi_client/resources/datasets/experiment-runs.js +1 -1
- package/dist/_openapi_client/resources/index.cjs +4 -2
- package/dist/_openapi_client/resources/index.d.ts +3 -2
- package/dist/_openapi_client/resources/index.js +2 -1
- package/dist/_openapi_client/resources/issues.cjs +31 -0
- package/dist/_openapi_client/resources/issues.d.ts +78 -0
- package/dist/_openapi_client/resources/issues.js +27 -0
- package/dist/_openapi_client/resources/runs.cjs +69 -15
- package/dist/_openapi_client/resources/runs.d.ts +806 -1
- package/dist/_openapi_client/resources/runs.js +67 -1
- package/dist/_openapi_client/resources/sessions.d.ts +1 -1
- package/dist/client.cjs +1 -5
- package/dist/client.d.ts +2 -5
- package/dist/client.js +1 -5
- package/dist/experimental/anthropic/context.cjs +1 -0
- package/dist/experimental/anthropic/context.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/env.cjs +1 -1
- package/dist/utils/env.d.ts +0 -7
- package/dist/utils/env.js +1 -1
- package/package.json +10 -10
- package/dist/_openapi_client/resources/datasets/comparative.cjs +0 -22
- package/dist/_openapi_client/resources/datasets/comparative.d.ts +0 -55
- package/dist/_openapi_client/resources/datasets/comparative.js +0 -18
- package/dist/_openapi_client/resources/datasets/runs.cjs +0 -22
- package/dist/_openapi_client/resources/datasets/runs.d.ts +0 -172
- package/dist/_openapi_client/resources/datasets/runs.js +0 -18
- package/dist/_openapi_client/resources/datasets/share.cjs +0 -32
- package/dist/_openapi_client/resources/datasets/share.d.ts +0 -28
- package/dist/_openapi_client/resources/datasets/share.js +0 -28
- package/dist/_openapi_client/resources/datasets/splits.cjs +0 -22
- package/dist/_openapi_client/resources/datasets/splits.d.ts +0 -30
- package/dist/_openapi_client/resources/datasets/splits.js +0 -18
- package/dist/_openapi_client/resources/datasets/versions.cjs +0 -23
- package/dist/_openapi_client/resources/datasets/versions.d.ts +0 -36
- package/dist/_openapi_client/resources/datasets/versions.js +0 -19
- package/dist/_openapi_client/resources/runs/index.cjs +0 -9
- package/dist/_openapi_client/resources/runs/index.d.ts +0 -2
- package/dist/_openapi_client/resources/runs/index.js +0 -4
- package/dist/_openapi_client/resources/runs/rules.cjs +0 -9
- package/dist/_openapi_client/resources/runs/rules.d.ts +0 -3
- package/dist/_openapi_client/resources/runs/rules.js +0 -5
- package/dist/_openapi_client/resources/runs/runs.cjs +0 -115
- package/dist/_openapi_client/resources/runs/runs.d.ts +0 -800
- package/dist/_openapi_client/resources/runs/runs.js +0 -78
|
@@ -63,10 +63,11 @@ const Uploads = __importStar(require("./core/uploads.cjs"));
|
|
|
63
63
|
const API = __importStar(require("./resources/index.cjs"));
|
|
64
64
|
const api_promise_js_1 = require("./core/api-promise.cjs");
|
|
65
65
|
const info_js_1 = require("./resources/info.cjs");
|
|
66
|
+
const issues_js_1 = require("./resources/issues.cjs");
|
|
66
67
|
const online_evaluators_js_1 = require("./resources/online-evaluators.cjs");
|
|
68
|
+
const runs_js_1 = require("./resources/runs.cjs");
|
|
67
69
|
const sessions_js_1 = require("./resources/sessions.cjs");
|
|
68
70
|
const datasets_js_1 = require("./resources/datasets/datasets.cjs");
|
|
69
|
-
const runs_js_1 = require("./resources/runs/runs.cjs");
|
|
70
71
|
const sandboxes_js_1 = require("./resources/sandboxes/sandboxes.cjs");
|
|
71
72
|
const headers_js_1 = require("./internal/headers.cjs");
|
|
72
73
|
const env_js_1 = require("./internal/utils/env.cjs");
|
|
@@ -188,6 +189,12 @@ class Langsmith {
|
|
|
188
189
|
writable: true,
|
|
189
190
|
value: new API.Info(this)
|
|
190
191
|
});
|
|
192
|
+
Object.defineProperty(this, "issues", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
configurable: true,
|
|
195
|
+
writable: true,
|
|
196
|
+
value: new API.Issues(this)
|
|
197
|
+
});
|
|
191
198
|
Object.defineProperty(this, "sandboxes", {
|
|
192
199
|
enumerable: true,
|
|
193
200
|
configurable: true,
|
|
@@ -739,4 +746,5 @@ Langsmith.Datasets = datasets_js_1.Datasets;
|
|
|
739
746
|
Langsmith.Runs = runs_js_1.Runs;
|
|
740
747
|
Langsmith.OnlineEvaluators = online_evaluators_js_1.OnlineEvaluators;
|
|
741
748
|
Langsmith.Info = info_js_1.Info;
|
|
749
|
+
Langsmith.Issues = issues_js_1.Issues;
|
|
742
750
|
Langsmith.Sandboxes = sandboxes_js_1.Sandboxes;
|
|
@@ -4,15 +4,16 @@ export type { Logger, LogLevel } from './internal/utils/log.js';
|
|
|
4
4
|
import * as Opts from './internal/request-options.js';
|
|
5
5
|
import * as Errors from './core/error.js';
|
|
6
6
|
import * as Pagination from './core/pagination.js';
|
|
7
|
-
import { type CursorPaginationParams, CursorPaginationResponse, type ItemsCursorGetPaginationParams, ItemsCursorGetPaginationResponse, type ItemsCursorPostPaginationParams, ItemsCursorPostPaginationResponse, type OffsetPaginationCommitsParams, OffsetPaginationCommitsResponse, type OffsetPaginationInsightsClusteringJobsParams, OffsetPaginationInsightsClusteringJobsResponse, type OffsetPaginationOnlineEvaluatorsParams, OffsetPaginationOnlineEvaluatorsResponse, type OffsetPaginationReposParams, OffsetPaginationReposResponse, type OffsetPaginationTopLevelArrayParams, OffsetPaginationTopLevelArrayResponse } from './core/pagination.js';
|
|
7
|
+
import { type CursorPaginationParams, CursorPaginationResponse, type ItemsCursorGetPaginationParams, ItemsCursorGetPaginationResponse, type ItemsCursorPostPaginationParams, ItemsCursorPostPaginationResponse, type OffsetPaginationCommitsParams, OffsetPaginationCommitsResponse, type OffsetPaginationInsightsClusteringJobsParams, OffsetPaginationInsightsClusteringJobsResponse, type OffsetPaginationIssuesParams, OffsetPaginationIssuesResponse, type OffsetPaginationOnlineEvaluatorsParams, OffsetPaginationOnlineEvaluatorsResponse, type OffsetPaginationReposParams, OffsetPaginationReposResponse, type OffsetPaginationTopLevelArrayParams, OffsetPaginationTopLevelArrayResponse } from './core/pagination.js';
|
|
8
8
|
import * as Uploads from './core/uploads.js';
|
|
9
9
|
import * as API from './resources/index.js';
|
|
10
10
|
import { APIPromise } from './core/api-promise.js';
|
|
11
11
|
import { Info, InfoListResponse } from './resources/info.js';
|
|
12
|
+
import { Issue, IssueListParams, Issues, IssuesOffsetPaginationIssues } from './resources/issues.js';
|
|
12
13
|
import { BulkDeleteEvaluatorFailedItem, BulkDeleteEvaluatorsResponse, CreateOnlineCodeEvaluatorRequest, CreateOnlineEvaluatorRequest, CreateOnlineEvaluatorResponse, CreateOnlineLlmEvaluatorRequest, GetOnlineEvaluatorSpendResponse, OnlineCodeEvaluator, OnlineEvaluator, OnlineEvaluatorBulkDeleteParams, OnlineEvaluatorCreateParams, OnlineEvaluatorDeleteParams, OnlineEvaluatorListParams, OnlineEvaluatorRunRule, OnlineEvaluatorSpendDay, OnlineEvaluatorSpendGroup, OnlineEvaluatorSpendParams, OnlineEvaluatorType, OnlineEvaluatorUpdateParams, OnlineEvaluators, OnlineEvaluatorsOffsetPaginationOnlineEvaluators, OnlineLlmEvaluator, OnlineSpendLimit, UpdateOnlineCodeEvaluatorRequest, UpdateOnlineEvaluatorRequest, UpdateOnlineEvaluatorResponse, UpdateOnlineLlmEvaluatorRequest } from './resources/online-evaluators.js';
|
|
14
|
+
import { ResponseBodyForRunsGenerateQuery, Run, RunIngest, RunQueryParams, RunQueryV2Params, RunRetrieveParams, RunRetrieveV2Params, RunSchema, RunStatsQueryParams, RunTypeEnum, Runs, RunsFilterDataSourceTypeEnum, RunsItemsCursorPostPagination } from './resources/runs.js';
|
|
13
15
|
import { CustomChartsSection, CustomChartsSectionRequest, RunStatsGroupBy, SessionCreateParams, SessionDeleteResponse, SessionListParams, SessionRetrieveParams, SessionSortableColumns, SessionUpdateParams, Sessions, TimedeltaInput, TracerSession, TracerSessionWithoutVirtualFields, TracerSessionsOffsetPaginationTopLevelArray } from './resources/sessions.js';
|
|
14
|
-
import { DataType, Dataset,
|
|
15
|
-
import { QueryRunResponse, QueryRunResponsesItemsCursorPostPagination, ResponseBodyForRunsGenerateQuery, Run, RunQueryParams, RunQueryV2Params, RunRetrieveParams, RunRetrieveV2Params, RunSchema, RunStatsQueryParams, RunTypeEnum, Runs, RunsFilterDataSourceTypeEnum } from './resources/runs/runs.js';
|
|
16
|
+
import { DataType, Dataset, DatasetTransformation, DatasetVersion, Datasets, FeedbackCreateCoreSchema, Missing, SortByDatasetColumn } from './resources/datasets/datasets.js';
|
|
16
17
|
import { SandboxListResponse, SandboxResponse, SandboxStatusResponse, Sandboxes, ServiceURLResponse, SnapshotListResponse, SnapshotResponse } from './resources/sandboxes/sandboxes.js';
|
|
17
18
|
import { type Fetch } from './internal/builtin-types.js';
|
|
18
19
|
import { HeadersLike, NullableHeaders } from './internal/headers.js';
|
|
@@ -191,12 +192,15 @@ export declare class Langsmith {
|
|
|
191
192
|
runs: API.Runs;
|
|
192
193
|
onlineEvaluators: API.OnlineEvaluators;
|
|
193
194
|
info: API.Info;
|
|
195
|
+
issues: API.Issues;
|
|
194
196
|
sandboxes: API.Sandboxes;
|
|
195
197
|
}
|
|
196
198
|
export declare namespace Langsmith {
|
|
197
199
|
export type RequestOptions = Opts.RequestOptions;
|
|
198
200
|
export import OffsetPaginationTopLevelArray = Pagination.OffsetPaginationTopLevelArray;
|
|
199
201
|
export { type OffsetPaginationTopLevelArrayParams as OffsetPaginationTopLevelArrayParams, type OffsetPaginationTopLevelArrayResponse as OffsetPaginationTopLevelArrayResponse, };
|
|
202
|
+
export import OffsetPaginationIssues = Pagination.OffsetPaginationIssues;
|
|
203
|
+
export { type OffsetPaginationIssuesParams as OffsetPaginationIssuesParams, type OffsetPaginationIssuesResponse as OffsetPaginationIssuesResponse, };
|
|
200
204
|
export import OffsetPaginationRepos = Pagination.OffsetPaginationRepos;
|
|
201
205
|
export { type OffsetPaginationReposParams as OffsetPaginationReposParams, type OffsetPaginationReposResponse as OffsetPaginationReposResponse, };
|
|
202
206
|
export import OffsetPaginationCommits = Pagination.OffsetPaginationCommits;
|
|
@@ -212,9 +216,10 @@ export declare namespace Langsmith {
|
|
|
212
216
|
export import ItemsCursorGetPagination = Pagination.ItemsCursorGetPagination;
|
|
213
217
|
export { type ItemsCursorGetPaginationParams as ItemsCursorGetPaginationParams, type ItemsCursorGetPaginationResponse as ItemsCursorGetPaginationResponse, };
|
|
214
218
|
export { Sessions as Sessions, type CustomChartsSection as CustomChartsSection, type CustomChartsSectionRequest as CustomChartsSectionRequest, type RunStatsGroupBy as RunStatsGroupBy, type SessionSortableColumns as SessionSortableColumns, type TimedeltaInput as TimedeltaInput, type TracerSession as TracerSession, type TracerSessionWithoutVirtualFields as TracerSessionWithoutVirtualFields, type SessionDeleteResponse as SessionDeleteResponse, type TracerSessionsOffsetPaginationTopLevelArray as TracerSessionsOffsetPaginationTopLevelArray, type SessionCreateParams as SessionCreateParams, type SessionRetrieveParams as SessionRetrieveParams, type SessionUpdateParams as SessionUpdateParams, type SessionListParams as SessionListParams, };
|
|
215
|
-
export { Datasets as Datasets, type DataType as DataType, type Dataset as Dataset, type DatasetTransformation as DatasetTransformation, type DatasetVersion as DatasetVersion, type FeedbackCreateCoreSchema as FeedbackCreateCoreSchema, type Missing as Missing, type SortByDatasetColumn as SortByDatasetColumn,
|
|
216
|
-
export { Runs as Runs, type
|
|
219
|
+
export { Datasets as Datasets, type DataType as DataType, type Dataset as Dataset, type DatasetTransformation as DatasetTransformation, type DatasetVersion as DatasetVersion, type FeedbackCreateCoreSchema as FeedbackCreateCoreSchema, type Missing as Missing, type SortByDatasetColumn as SortByDatasetColumn, };
|
|
220
|
+
export { Runs as Runs, type ResponseBodyForRunsGenerateQuery as ResponseBodyForRunsGenerateQuery, type Run as Run, type RunIngest as RunIngest, type RunSchema as RunSchema, type RunStatsQueryParams as RunStatsQueryParams, type RunTypeEnum as RunTypeEnum, type RunsFilterDataSourceTypeEnum as RunsFilterDataSourceTypeEnum, type RunsItemsCursorPostPagination as RunsItemsCursorPostPagination, type RunQueryV2Params as RunQueryV2Params, type RunRetrieveV2Params as RunRetrieveV2Params, type RunRetrieveParams as RunRetrieveParams, type RunQueryParams as RunQueryParams, };
|
|
217
221
|
export { OnlineEvaluators as OnlineEvaluators, type BulkDeleteEvaluatorFailedItem as BulkDeleteEvaluatorFailedItem, type BulkDeleteEvaluatorsResponse as BulkDeleteEvaluatorsResponse, type CreateOnlineCodeEvaluatorRequest as CreateOnlineCodeEvaluatorRequest, type CreateOnlineEvaluatorRequest as CreateOnlineEvaluatorRequest, type CreateOnlineEvaluatorResponse as CreateOnlineEvaluatorResponse, type CreateOnlineLlmEvaluatorRequest as CreateOnlineLlmEvaluatorRequest, type GetOnlineEvaluatorSpendResponse as GetOnlineEvaluatorSpendResponse, type OnlineCodeEvaluator as OnlineCodeEvaluator, type OnlineEvaluator as OnlineEvaluator, type OnlineEvaluatorRunRule as OnlineEvaluatorRunRule, type OnlineEvaluatorSpendDay as OnlineEvaluatorSpendDay, type OnlineEvaluatorSpendGroup as OnlineEvaluatorSpendGroup, type OnlineEvaluatorType as OnlineEvaluatorType, type OnlineLlmEvaluator as OnlineLlmEvaluator, type OnlineSpendLimit as OnlineSpendLimit, type UpdateOnlineCodeEvaluatorRequest as UpdateOnlineCodeEvaluatorRequest, type UpdateOnlineEvaluatorRequest as UpdateOnlineEvaluatorRequest, type UpdateOnlineEvaluatorResponse as UpdateOnlineEvaluatorResponse, type UpdateOnlineLlmEvaluatorRequest as UpdateOnlineLlmEvaluatorRequest, type OnlineEvaluatorsOffsetPaginationOnlineEvaluators as OnlineEvaluatorsOffsetPaginationOnlineEvaluators, type OnlineEvaluatorCreateParams as OnlineEvaluatorCreateParams, type OnlineEvaluatorUpdateParams as OnlineEvaluatorUpdateParams, type OnlineEvaluatorListParams as OnlineEvaluatorListParams, type OnlineEvaluatorDeleteParams as OnlineEvaluatorDeleteParams, type OnlineEvaluatorBulkDeleteParams as OnlineEvaluatorBulkDeleteParams, type OnlineEvaluatorSpendParams as OnlineEvaluatorSpendParams, };
|
|
218
222
|
export { Info as Info, type InfoListResponse as InfoListResponse };
|
|
223
|
+
export { Issues as Issues, type Issue as Issue, type IssuesOffsetPaginationIssues as IssuesOffsetPaginationIssues, type IssueListParams as IssueListParams, };
|
|
219
224
|
export { Sandboxes as Sandboxes, type SandboxListResponse as SandboxListResponse, type SandboxResponse as SandboxResponse, type SandboxStatusResponse as SandboxStatusResponse, type ServiceURLResponse as ServiceURLResponse, type SnapshotListResponse as SnapshotListResponse, type SnapshotResponse as SnapshotResponse, };
|
|
220
225
|
}
|
|
@@ -27,10 +27,11 @@ import * as Uploads from './core/uploads.js';
|
|
|
27
27
|
import * as API from './resources/index.js';
|
|
28
28
|
import { APIPromise } from './core/api-promise.js';
|
|
29
29
|
import { Info } from './resources/info.js';
|
|
30
|
+
import { Issues } from './resources/issues.js';
|
|
30
31
|
import { OnlineEvaluators, } from './resources/online-evaluators.js';
|
|
32
|
+
import { Runs, } from './resources/runs.js';
|
|
31
33
|
import { Sessions, } from './resources/sessions.js';
|
|
32
34
|
import { Datasets, } from './resources/datasets/datasets.js';
|
|
33
|
-
import { Runs, } from './resources/runs/runs.js';
|
|
34
35
|
import { Sandboxes, } from './resources/sandboxes/sandboxes.js';
|
|
35
36
|
import { buildHeaders } from './internal/headers.js';
|
|
36
37
|
import { readEnv } from './internal/utils/env.js';
|
|
@@ -152,6 +153,12 @@ export class Langsmith {
|
|
|
152
153
|
writable: true,
|
|
153
154
|
value: new API.Info(this)
|
|
154
155
|
});
|
|
156
|
+
Object.defineProperty(this, "issues", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
configurable: true,
|
|
159
|
+
writable: true,
|
|
160
|
+
value: new API.Issues(this)
|
|
161
|
+
});
|
|
155
162
|
Object.defineProperty(this, "sandboxes", {
|
|
156
163
|
enumerable: true,
|
|
157
164
|
configurable: true,
|
|
@@ -702,4 +709,5 @@ Langsmith.Datasets = Datasets;
|
|
|
702
709
|
Langsmith.Runs = Runs;
|
|
703
710
|
Langsmith.OnlineEvaluators = OnlineEvaluators;
|
|
704
711
|
Langsmith.Info = Info;
|
|
712
|
+
Langsmith.Issues = Issues;
|
|
705
713
|
Langsmith.Sandboxes = Sandboxes;
|
|
@@ -14,7 +14,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
14
14
|
};
|
|
15
15
|
var _AbstractPage_client;
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ItemsCursorGetPagination = exports.ItemsCursorPostPagination = exports.CursorPagination = exports.OffsetPaginationInsightsClusteringJobs = exports.OffsetPaginationOnlineEvaluators = exports.OffsetPaginationCommits = exports.OffsetPaginationRepos = exports.OffsetPaginationTopLevelArray = exports.PagePromise = exports.AbstractPage = void 0;
|
|
17
|
+
exports.ItemsCursorGetPagination = exports.ItemsCursorPostPagination = exports.CursorPagination = exports.OffsetPaginationInsightsClusteringJobs = exports.OffsetPaginationOnlineEvaluators = exports.OffsetPaginationCommits = exports.OffsetPaginationRepos = exports.OffsetPaginationIssues = exports.OffsetPaginationTopLevelArray = exports.PagePromise = exports.AbstractPage = void 0;
|
|
18
18
|
const error_js_1 = require("./error.cjs");
|
|
19
19
|
const parse_js_1 = require("../internal/parse.cjs");
|
|
20
20
|
const api_promise_js_1 = require("./api-promise.cjs");
|
|
@@ -131,6 +131,34 @@ class OffsetPaginationTopLevelArray extends AbstractPage {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
exports.OffsetPaginationTopLevelArray = OffsetPaginationTopLevelArray;
|
|
134
|
+
class OffsetPaginationIssues extends AbstractPage {
|
|
135
|
+
constructor(client, response, body, options) {
|
|
136
|
+
super(client, response, body, options);
|
|
137
|
+
Object.defineProperty(this, "items", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
configurable: true,
|
|
140
|
+
writable: true,
|
|
141
|
+
value: void 0
|
|
142
|
+
});
|
|
143
|
+
this.items = body || [];
|
|
144
|
+
}
|
|
145
|
+
getPaginatedItems() {
|
|
146
|
+
return this.items ?? [];
|
|
147
|
+
}
|
|
148
|
+
nextPageRequestOptions() {
|
|
149
|
+
const offset = this.options.query.offset ?? 0;
|
|
150
|
+
const length = this.getPaginatedItems().length;
|
|
151
|
+
const currentCount = offset + length;
|
|
152
|
+
return {
|
|
153
|
+
...this.options,
|
|
154
|
+
query: {
|
|
155
|
+
...(0, values_js_1.maybeObj)(this.options.query),
|
|
156
|
+
offset: currentCount,
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.OffsetPaginationIssues = OffsetPaginationIssues;
|
|
134
162
|
class OffsetPaginationRepos extends AbstractPage {
|
|
135
163
|
constructor(client, response, body, options) {
|
|
136
164
|
super(client, response, body, options);
|
|
@@ -47,6 +47,17 @@ export declare class OffsetPaginationTopLevelArray<Item> extends AbstractPage<It
|
|
|
47
47
|
getPaginatedItems(): Item[];
|
|
48
48
|
nextPageRequestOptions(): PageRequestOptions | null;
|
|
49
49
|
}
|
|
50
|
+
export type OffsetPaginationIssuesResponse<Item> = Item[];
|
|
51
|
+
export interface OffsetPaginationIssuesParams {
|
|
52
|
+
offset?: number;
|
|
53
|
+
limit?: number;
|
|
54
|
+
}
|
|
55
|
+
export declare class OffsetPaginationIssues<Item> extends AbstractPage<Item> {
|
|
56
|
+
items: Array<Item>;
|
|
57
|
+
constructor(client: Langsmith, response: Response, body: OffsetPaginationIssuesResponse<Item>, options: FinalRequestOptions);
|
|
58
|
+
getPaginatedItems(): Item[];
|
|
59
|
+
nextPageRequestOptions(): PageRequestOptions | null;
|
|
60
|
+
}
|
|
50
61
|
export interface OffsetPaginationReposResponse<Item> {
|
|
51
62
|
repos: Array<Item>;
|
|
52
63
|
total: number;
|
|
@@ -125,6 +125,33 @@ export class OffsetPaginationTopLevelArray extends AbstractPage {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
+
export class OffsetPaginationIssues extends AbstractPage {
|
|
129
|
+
constructor(client, response, body, options) {
|
|
130
|
+
super(client, response, body, options);
|
|
131
|
+
Object.defineProperty(this, "items", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
configurable: true,
|
|
134
|
+
writable: true,
|
|
135
|
+
value: void 0
|
|
136
|
+
});
|
|
137
|
+
this.items = body || [];
|
|
138
|
+
}
|
|
139
|
+
getPaginatedItems() {
|
|
140
|
+
return this.items ?? [];
|
|
141
|
+
}
|
|
142
|
+
nextPageRequestOptions() {
|
|
143
|
+
const offset = this.options.query.offset ?? 0;
|
|
144
|
+
const length = this.getPaginatedItems().length;
|
|
145
|
+
const currentCount = offset + length;
|
|
146
|
+
return {
|
|
147
|
+
...this.options,
|
|
148
|
+
query: {
|
|
149
|
+
...maybeObj(this.options.query),
|
|
150
|
+
offset: currentCount,
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
128
155
|
export class OffsetPaginationRepos extends AbstractPage {
|
|
129
156
|
constructor(client, response, body, options) {
|
|
130
157
|
super(client, response, body, options);
|
|
@@ -37,148 +37,18 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
exports.Datasets = void 0;
|
|
39
39
|
const resource_js_1 = require("../../core/resource.cjs");
|
|
40
|
-
const ComparativeAPI = __importStar(require("./comparative.cjs"));
|
|
41
|
-
const comparative_js_1 = require("./comparative.cjs");
|
|
42
40
|
const ExperimentRunsAPI = __importStar(require("./experiment-runs.cjs"));
|
|
43
41
|
const experiment_runs_js_1 = require("./experiment-runs.cjs");
|
|
44
|
-
const RunsAPI = __importStar(require("./runs.cjs"));
|
|
45
|
-
const runs_js_1 = require("./runs.cjs");
|
|
46
|
-
const ShareAPI = __importStar(require("./share.cjs"));
|
|
47
|
-
const share_js_1 = require("./share.cjs");
|
|
48
|
-
const SplitsAPI = __importStar(require("./splits.cjs"));
|
|
49
|
-
const splits_js_1 = require("./splits.cjs");
|
|
50
|
-
const VersionsAPI = __importStar(require("./versions.cjs"));
|
|
51
|
-
const versions_js_1 = require("./versions.cjs");
|
|
52
|
-
const pagination_js_1 = require("../../core/pagination.cjs");
|
|
53
|
-
const uploads_js_1 = require("../../internal/uploads.cjs");
|
|
54
|
-
const path_js_1 = require("../../internal/utils/path.cjs");
|
|
55
42
|
class Datasets extends resource_js_1.APIResource {
|
|
56
43
|
constructor() {
|
|
57
44
|
super(...arguments);
|
|
58
|
-
Object.defineProperty(this, "versions", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
configurable: true,
|
|
61
|
-
writable: true,
|
|
62
|
-
value: new VersionsAPI.Versions(this._client)
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(this, "runs", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true,
|
|
67
|
-
writable: true,
|
|
68
|
-
value: new RunsAPI.Runs(this._client)
|
|
69
|
-
});
|
|
70
45
|
Object.defineProperty(this, "experimentRuns", {
|
|
71
46
|
enumerable: true,
|
|
72
47
|
configurable: true,
|
|
73
48
|
writable: true,
|
|
74
49
|
value: new ExperimentRunsAPI.ExperimentRuns(this._client)
|
|
75
50
|
});
|
|
76
|
-
Object.defineProperty(this, "share", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
configurable: true,
|
|
79
|
-
writable: true,
|
|
80
|
-
value: new ShareAPI.Share(this._client)
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(this, "comparative", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
configurable: true,
|
|
85
|
-
writable: true,
|
|
86
|
-
value: new ComparativeAPI.Comparative(this._client)
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(this, "splits", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
configurable: true,
|
|
91
|
-
writable: true,
|
|
92
|
-
value: new SplitsAPI.Splits(this._client)
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Create a new dataset.
|
|
97
|
-
*/
|
|
98
|
-
create(body, options) {
|
|
99
|
-
return this._client.post('/api/v1/datasets', { body, ...options });
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Get a specific dataset.
|
|
103
|
-
*/
|
|
104
|
-
retrieve(datasetID, options) {
|
|
105
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}`, options);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Update a specific dataset.
|
|
109
|
-
*/
|
|
110
|
-
update(datasetID, body, options) {
|
|
111
|
-
return this._client.patch((0, path_js_1.path) `/api/v1/datasets/${datasetID}`, { body, ...options });
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Get all datasets by query params and owner.
|
|
115
|
-
*/
|
|
116
|
-
list(params = {}, options) {
|
|
117
|
-
const { datatype, ...query } = params ?? {};
|
|
118
|
-
return this._client.getAPIList('/api/v1/datasets', (pagination_js_1.OffsetPaginationTopLevelArray), {
|
|
119
|
-
query: { data_type: datatype, ...query },
|
|
120
|
-
...options,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Delete a specific dataset.
|
|
125
|
-
*/
|
|
126
|
-
delete(datasetID, options) {
|
|
127
|
-
return this._client.delete((0, path_js_1.path) `/api/v1/datasets/${datasetID}`, options);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Clone a dataset.
|
|
131
|
-
*/
|
|
132
|
-
clone(body, options) {
|
|
133
|
-
return this._client.post('/api/v1/datasets/clone', { body, ...options });
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Download a dataset as CSV format.
|
|
137
|
-
*/
|
|
138
|
-
retrieveCsv(datasetID, query = {}, options) {
|
|
139
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}/csv`, { query, ...options });
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Download a dataset as CSV format.
|
|
143
|
-
*/
|
|
144
|
-
retrieveJSONL(datasetID, query = {}, options) {
|
|
145
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}/jsonl`, { query, ...options });
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Download a dataset as OpenAI Evals Jsonl format.
|
|
149
|
-
*/
|
|
150
|
-
retrieveOpenAI(datasetID, query = {}, options) {
|
|
151
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}/openai`, { query, ...options });
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Download a dataset as OpenAI Jsonl format.
|
|
155
|
-
*/
|
|
156
|
-
retrieveOpenAIFt(datasetID, query = {}, options) {
|
|
157
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}/openai_ft`, { query, ...options });
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Get dataset version by as_of or exact tag.
|
|
161
|
-
*/
|
|
162
|
-
retrieveVersion(datasetID, query = {}, options) {
|
|
163
|
-
return this._client.get((0, path_js_1.path) `/api/v1/datasets/${datasetID}/version`, { query, ...options });
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Set a tag on a dataset version.
|
|
167
|
-
*/
|
|
168
|
-
updateTags(datasetID, body, options) {
|
|
169
|
-
return this._client.put((0, path_js_1.path) `/api/v1/datasets/${datasetID}/tags`, { body, ...options });
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Create a new dataset from a CSV or JSONL file.
|
|
173
|
-
*/
|
|
174
|
-
upload(body, options) {
|
|
175
|
-
return this._client.post('/api/v1/datasets/upload', (0, uploads_js_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
176
51
|
}
|
|
177
52
|
}
|
|
178
53
|
exports.Datasets = Datasets;
|
|
179
|
-
Datasets.Versions = versions_js_1.Versions;
|
|
180
|
-
Datasets.Runs = runs_js_1.Runs;
|
|
181
54
|
Datasets.ExperimentRuns = experiment_runs_js_1.ExperimentRuns;
|
|
182
|
-
Datasets.Share = share_js_1.Share;
|
|
183
|
-
Datasets.Comparative = comparative_js_1.Comparative;
|
|
184
|
-
Datasets.Splits = splits_js_1.Splits;
|
|
@@ -1,82 +1,9 @@
|
|
|
1
1
|
import { APIResource } from '../../core/resource.js';
|
|
2
|
-
import * as ComparativeAPI from './comparative.js';
|
|
3
|
-
import { Comparative, ComparativeCreateParams, ComparativeCreateResponse, ComparativeDeleteResponse, SimpleExperimentInfo, SortByComparativeExperimentColumn } from './comparative.js';
|
|
4
2
|
import * as ExperimentRunsAPI from './experiment-runs.js';
|
|
5
|
-
import {
|
|
6
|
-
import * as RunsAPI from './runs.js';
|
|
7
|
-
import { ExampleWithRunsCh, QueryExampleSchemaWithRuns, RunCreateParams, RunCreateResponse, Runs, SortParamsForRunsComparisonView } from './runs.js';
|
|
8
|
-
import * as ShareAPI from './share.js';
|
|
9
|
-
import { DatasetShareSchema, Share, ShareCreateParams, ShareDeleteAllResponse } from './share.js';
|
|
10
|
-
import * as SplitsAPI from './splits.js';
|
|
11
|
-
import { SplitCreateParams, SplitCreateResponse, SplitRetrieveParams, SplitRetrieveResponse, Splits } from './splits.js';
|
|
12
|
-
import * as VersionsAPI from './versions.js';
|
|
13
|
-
import { VersionListParams, VersionRetrieveDiffParams, VersionRetrieveDiffResponse, Versions } from './versions.js';
|
|
14
|
-
import { APIPromise } from '../../core/api-promise.js';
|
|
15
|
-
import { OffsetPaginationTopLevelArray, type OffsetPaginationTopLevelArrayParams, PagePromise } from '../../core/pagination.js';
|
|
16
|
-
import { type Uploadable } from '../../core/uploads.js';
|
|
17
|
-
import { RequestOptions } from '../../internal/request-options.js';
|
|
3
|
+
import { ExperimentRunQueryParams, ExperimentRunQueryResponse, ExperimentRunQueryResponsesItemsCursorPostPagination, ExperimentRuns } from './experiment-runs.js';
|
|
18
4
|
export declare class Datasets extends APIResource {
|
|
19
|
-
versions: VersionsAPI.Versions;
|
|
20
|
-
runs: RunsAPI.Runs;
|
|
21
5
|
experimentRuns: ExperimentRunsAPI.ExperimentRuns;
|
|
22
|
-
share: ShareAPI.Share;
|
|
23
|
-
comparative: ComparativeAPI.Comparative;
|
|
24
|
-
splits: SplitsAPI.Splits;
|
|
25
|
-
/**
|
|
26
|
-
* Create a new dataset.
|
|
27
|
-
*/
|
|
28
|
-
create(body: DatasetCreateParams, options?: RequestOptions): APIPromise<Dataset>;
|
|
29
|
-
/**
|
|
30
|
-
* Get a specific dataset.
|
|
31
|
-
*/
|
|
32
|
-
retrieve(datasetID: string, options?: RequestOptions): APIPromise<Dataset>;
|
|
33
|
-
/**
|
|
34
|
-
* Update a specific dataset.
|
|
35
|
-
*/
|
|
36
|
-
update(datasetID: string, body: DatasetUpdateParams, options?: RequestOptions): APIPromise<DatasetUpdateResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Get all datasets by query params and owner.
|
|
39
|
-
*/
|
|
40
|
-
list(params?: DatasetListParams | null | undefined, options?: RequestOptions): PagePromise<DatasetsOffsetPaginationTopLevelArray, Dataset>;
|
|
41
|
-
/**
|
|
42
|
-
* Delete a specific dataset.
|
|
43
|
-
*/
|
|
44
|
-
delete(datasetID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
45
|
-
/**
|
|
46
|
-
* Clone a dataset.
|
|
47
|
-
*/
|
|
48
|
-
clone(body: DatasetCloneParams, options?: RequestOptions): APIPromise<DatasetCloneResponse>;
|
|
49
|
-
/**
|
|
50
|
-
* Download a dataset as CSV format.
|
|
51
|
-
*/
|
|
52
|
-
retrieveCsv(datasetID: string, query?: DatasetRetrieveCsvParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
53
|
-
/**
|
|
54
|
-
* Download a dataset as CSV format.
|
|
55
|
-
*/
|
|
56
|
-
retrieveJSONL(datasetID: string, query?: DatasetRetrieveJSONLParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
57
|
-
/**
|
|
58
|
-
* Download a dataset as OpenAI Evals Jsonl format.
|
|
59
|
-
*/
|
|
60
|
-
retrieveOpenAI(datasetID: string, query?: DatasetRetrieveOpenAIParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
61
|
-
/**
|
|
62
|
-
* Download a dataset as OpenAI Jsonl format.
|
|
63
|
-
*/
|
|
64
|
-
retrieveOpenAIFt(datasetID: string, query?: DatasetRetrieveOpenAIFtParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
65
|
-
/**
|
|
66
|
-
* Get dataset version by as_of or exact tag.
|
|
67
|
-
*/
|
|
68
|
-
retrieveVersion(datasetID: string, query?: DatasetRetrieveVersionParams | null | undefined, options?: RequestOptions): APIPromise<DatasetVersion>;
|
|
69
|
-
/**
|
|
70
|
-
* Set a tag on a dataset version.
|
|
71
|
-
*/
|
|
72
|
-
updateTags(datasetID: string, body: DatasetUpdateTagsParams, options?: RequestOptions): APIPromise<DatasetVersion>;
|
|
73
|
-
/**
|
|
74
|
-
* Create a new dataset from a CSV or JSONL file.
|
|
75
|
-
*/
|
|
76
|
-
upload(body: DatasetUploadParams, options?: RequestOptions): APIPromise<Dataset>;
|
|
77
6
|
}
|
|
78
|
-
export type DatasetsOffsetPaginationTopLevelArray = OffsetPaginationTopLevelArray<Dataset>;
|
|
79
|
-
export type DatasetVersionsOffsetPaginationTopLevelArray = OffsetPaginationTopLevelArray<DatasetVersion>;
|
|
80
7
|
/**
|
|
81
8
|
* Enum for dataset data types.
|
|
82
9
|
*/
|
|
@@ -217,202 +144,7 @@ export interface Missing {
|
|
|
217
144
|
* Enum for available dataset columns to sort by.
|
|
218
145
|
*/
|
|
219
146
|
export type SortByDatasetColumn = 'name' | 'created_at' | 'last_session_start_time' | 'example_count' | 'session_count' | 'modified_at';
|
|
220
|
-
export interface DatasetUpdateResponse {
|
|
221
|
-
id: string;
|
|
222
|
-
name: string;
|
|
223
|
-
tenant_id: string;
|
|
224
|
-
created_at?: string;
|
|
225
|
-
/**
|
|
226
|
-
* Enum for dataset data types.
|
|
227
|
-
*/
|
|
228
|
-
data_type?: DataType | null;
|
|
229
|
-
description?: string | null;
|
|
230
|
-
externally_managed?: boolean | null;
|
|
231
|
-
inputs_schema_definition?: {
|
|
232
|
-
[key: string]: unknown;
|
|
233
|
-
} | null;
|
|
234
|
-
outputs_schema_definition?: {
|
|
235
|
-
[key: string]: unknown;
|
|
236
|
-
} | null;
|
|
237
|
-
transformations?: Array<DatasetTransformation> | null;
|
|
238
|
-
}
|
|
239
|
-
export type DatasetDeleteResponse = unknown;
|
|
240
|
-
export type DatasetCloneResponse = Array<{
|
|
241
|
-
[key: string]: unknown;
|
|
242
|
-
}>;
|
|
243
|
-
export type DatasetRetrieveCsvResponse = unknown;
|
|
244
|
-
export type DatasetRetrieveJSONLResponse = unknown;
|
|
245
|
-
export type DatasetRetrieveOpenAIResponse = unknown;
|
|
246
|
-
export type DatasetRetrieveOpenAIFtResponse = unknown;
|
|
247
|
-
export interface DatasetCreateParams {
|
|
248
|
-
name: string;
|
|
249
|
-
id?: string | null;
|
|
250
|
-
created_at?: string;
|
|
251
|
-
/**
|
|
252
|
-
* Enum for dataset data types.
|
|
253
|
-
*/
|
|
254
|
-
data_type?: DataType;
|
|
255
|
-
description?: string | null;
|
|
256
|
-
externally_managed?: boolean | null;
|
|
257
|
-
extra?: {
|
|
258
|
-
[key: string]: unknown;
|
|
259
|
-
} | null;
|
|
260
|
-
inputs_schema_definition?: {
|
|
261
|
-
[key: string]: unknown;
|
|
262
|
-
} | null;
|
|
263
|
-
outputs_schema_definition?: {
|
|
264
|
-
[key: string]: unknown;
|
|
265
|
-
} | null;
|
|
266
|
-
tag_value_ids?: Array<string> | null;
|
|
267
|
-
transformations?: Array<DatasetTransformation> | null;
|
|
268
|
-
}
|
|
269
|
-
export interface DatasetUpdateParams {
|
|
270
|
-
baseline_experiment_id?: string | Missing | null;
|
|
271
|
-
description?: string | Missing | null;
|
|
272
|
-
inputs_schema_definition?: {
|
|
273
|
-
[key: string]: unknown;
|
|
274
|
-
} | Missing | null;
|
|
275
|
-
metadata?: {
|
|
276
|
-
[key: string]: unknown;
|
|
277
|
-
} | Missing | null;
|
|
278
|
-
name?: string | Missing | null;
|
|
279
|
-
outputs_schema_definition?: {
|
|
280
|
-
[key: string]: unknown;
|
|
281
|
-
} | Missing | null;
|
|
282
|
-
patch_examples?: {
|
|
283
|
-
[key: string]: DatasetUpdateParams.PatchExamples;
|
|
284
|
-
} | null;
|
|
285
|
-
transformations?: Array<DatasetTransformation> | Missing | null;
|
|
286
|
-
}
|
|
287
|
-
export declare namespace DatasetUpdateParams {
|
|
288
|
-
/**
|
|
289
|
-
* Update class for Example.
|
|
290
|
-
*/
|
|
291
|
-
interface PatchExamples {
|
|
292
|
-
attachments_operations?: PatchExamples.AttachmentsOperations | null;
|
|
293
|
-
dataset_id?: string | null;
|
|
294
|
-
inputs?: {
|
|
295
|
-
[key: string]: unknown;
|
|
296
|
-
} | null;
|
|
297
|
-
metadata?: {
|
|
298
|
-
[key: string]: unknown;
|
|
299
|
-
} | null;
|
|
300
|
-
outputs?: {
|
|
301
|
-
[key: string]: unknown;
|
|
302
|
-
} | null;
|
|
303
|
-
overwrite?: boolean;
|
|
304
|
-
split?: Array<string> | string | null;
|
|
305
|
-
}
|
|
306
|
-
namespace PatchExamples {
|
|
307
|
-
interface AttachmentsOperations {
|
|
308
|
-
/**
|
|
309
|
-
* Mapping of old attachment names to new names
|
|
310
|
-
*/
|
|
311
|
-
rename?: {
|
|
312
|
-
[key: string]: string;
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* List of attachment names to keep
|
|
316
|
-
*/
|
|
317
|
-
retain?: Array<string>;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
export interface DatasetListParams extends OffsetPaginationTopLevelArrayParams {
|
|
322
|
-
id?: Array<string> | null;
|
|
323
|
-
/**
|
|
324
|
-
* Enum for dataset data types.
|
|
325
|
-
*/
|
|
326
|
-
datatype?: Array<DataType> | DataType | null;
|
|
327
|
-
exclude?: Array<'example_count'> | null;
|
|
328
|
-
exclude_corrections_datasets?: boolean;
|
|
329
|
-
metadata?: string | null;
|
|
330
|
-
name?: string | null;
|
|
331
|
-
name_contains?: string | null;
|
|
332
|
-
/**
|
|
333
|
-
* Enum for available dataset columns to sort by.
|
|
334
|
-
*/
|
|
335
|
-
sort_by?: SortByDatasetColumn;
|
|
336
|
-
sort_by_desc?: boolean;
|
|
337
|
-
tag_value_id?: Array<string> | null;
|
|
338
|
-
}
|
|
339
|
-
export interface DatasetCloneParams {
|
|
340
|
-
source_dataset_id: string;
|
|
341
|
-
target_dataset_id: string;
|
|
342
|
-
/**
|
|
343
|
-
* Only modifications made on or before this time are included. If None, the latest
|
|
344
|
-
* version of the dataset is used.
|
|
345
|
-
*/
|
|
346
|
-
as_of?: (string & {}) | string | null;
|
|
347
|
-
examples?: Array<string>;
|
|
348
|
-
split?: string | Array<string> | null;
|
|
349
|
-
tag_value_ids?: Array<string> | null;
|
|
350
|
-
}
|
|
351
|
-
export interface DatasetRetrieveCsvParams {
|
|
352
|
-
/**
|
|
353
|
-
* Only modifications made on or before this time are included. If None, the latest
|
|
354
|
-
* version of the dataset is used.
|
|
355
|
-
*/
|
|
356
|
-
as_of?: string | null;
|
|
357
|
-
}
|
|
358
|
-
export interface DatasetRetrieveJSONLParams {
|
|
359
|
-
/**
|
|
360
|
-
* Only modifications made on or before this time are included. If None, the latest
|
|
361
|
-
* version of the dataset is used.
|
|
362
|
-
*/
|
|
363
|
-
as_of?: string | null;
|
|
364
|
-
}
|
|
365
|
-
export interface DatasetRetrieveOpenAIParams {
|
|
366
|
-
/**
|
|
367
|
-
* Only modifications made on or before this time are included. If None, the latest
|
|
368
|
-
* version of the dataset is used.
|
|
369
|
-
*/
|
|
370
|
-
as_of?: string | null;
|
|
371
|
-
}
|
|
372
|
-
export interface DatasetRetrieveOpenAIFtParams {
|
|
373
|
-
/**
|
|
374
|
-
* Only modifications made on or before this time are included. If None, the latest
|
|
375
|
-
* version of the dataset is used.
|
|
376
|
-
*/
|
|
377
|
-
as_of?: string | null;
|
|
378
|
-
}
|
|
379
|
-
export interface DatasetRetrieveVersionParams {
|
|
380
|
-
as_of?: string | null;
|
|
381
|
-
tag?: string | null;
|
|
382
|
-
}
|
|
383
|
-
export interface DatasetUpdateTagsParams {
|
|
384
|
-
/**
|
|
385
|
-
* Only modifications made on or before this time are included. If None, the latest
|
|
386
|
-
* version of the dataset is used.
|
|
387
|
-
*/
|
|
388
|
-
as_of: (string & {}) | string;
|
|
389
|
-
tag: string;
|
|
390
|
-
}
|
|
391
|
-
export interface DatasetUploadParams {
|
|
392
|
-
file: Uploadable;
|
|
393
|
-
input_keys: Array<string>;
|
|
394
|
-
/**
|
|
395
|
-
* Enum for dataset data types.
|
|
396
|
-
*/
|
|
397
|
-
data_type?: DataType;
|
|
398
|
-
description?: string | null;
|
|
399
|
-
input_key_mappings?: string | null;
|
|
400
|
-
inputs_schema_definition?: string | null;
|
|
401
|
-
metadata_key_mappings?: string | null;
|
|
402
|
-
metadata_keys?: Array<string>;
|
|
403
|
-
name?: string | null;
|
|
404
|
-
output_key_mappings?: string | null;
|
|
405
|
-
output_keys?: Array<string>;
|
|
406
|
-
outputs_schema_definition?: string | null;
|
|
407
|
-
tag_value_ids?: string | null;
|
|
408
|
-
transformations?: string | null;
|
|
409
|
-
}
|
|
410
147
|
export declare namespace Datasets {
|
|
411
|
-
export { type DataType as DataType, type Dataset as Dataset, type DatasetTransformation as DatasetTransformation, type DatasetVersion as DatasetVersion, type FeedbackCreateCoreSchema as FeedbackCreateCoreSchema, type Missing as Missing, type SortByDatasetColumn as SortByDatasetColumn,
|
|
412
|
-
export {
|
|
413
|
-
export { Runs as Runs, type ExampleWithRunsCh as ExampleWithRunsCh, type QueryExampleSchemaWithRuns as QueryExampleSchemaWithRuns, type SortParamsForRunsComparisonView as SortParamsForRunsComparisonView, type RunCreateResponse as RunCreateResponse, type RunCreateParams as RunCreateParams, };
|
|
414
|
-
export { ExperimentRuns as ExperimentRuns, type ExperimentRunCreateResponse as ExperimentRunCreateResponse, type ExperimentRunCreateResponsesItemsCursorPostPagination as ExperimentRunCreateResponsesItemsCursorPostPagination, type ExperimentRunCreateParams as ExperimentRunCreateParams, };
|
|
415
|
-
export { Share as Share, type DatasetShareSchema as DatasetShareSchema, type ShareDeleteAllResponse as ShareDeleteAllResponse, type ShareCreateParams as ShareCreateParams, };
|
|
416
|
-
export { Comparative as Comparative, type SimpleExperimentInfo as SimpleExperimentInfo, type SortByComparativeExperimentColumn as SortByComparativeExperimentColumn, type ComparativeCreateResponse as ComparativeCreateResponse, type ComparativeDeleteResponse as ComparativeDeleteResponse, type ComparativeCreateParams as ComparativeCreateParams, };
|
|
417
|
-
export { Splits as Splits, type SplitCreateResponse as SplitCreateResponse, type SplitRetrieveResponse as SplitRetrieveResponse, type SplitCreateParams as SplitCreateParams, type SplitRetrieveParams as SplitRetrieveParams, };
|
|
148
|
+
export { type DataType as DataType, type Dataset as Dataset, type DatasetTransformation as DatasetTransformation, type DatasetVersion as DatasetVersion, type FeedbackCreateCoreSchema as FeedbackCreateCoreSchema, type Missing as Missing, type SortByDatasetColumn as SortByDatasetColumn, };
|
|
149
|
+
export { ExperimentRuns as ExperimentRuns, type ExperimentRunQueryResponse as ExperimentRunQueryResponse, type ExperimentRunQueryResponsesItemsCursorPostPagination as ExperimentRunQueryResponsesItemsCursorPostPagination, type ExperimentRunQueryParams as ExperimentRunQueryParams, };
|
|
418
150
|
}
|