@gradiated/grad 0.0.0-stage → 0.2.0-alpha.1
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/LICENSE +21 -0
- package/README.md +83 -2
- package/dist/client.d.ts +71 -0
- package/dist/client.js +188 -0
- package/dist/config.d.ts +21 -0
- package/dist/config.js +90 -0
- package/dist/core.d.ts +13 -0
- package/dist/core.js +1 -0
- package/dist/errors.d.ts +37 -0
- package/dist/errors.js +70 -0
- package/dist/generated/client.d.ts +532 -0
- package/dist/generated/client.js +596 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +3 -0
- package/dist/generated/models.d.ts +998 -0
- package/dist/generated/models.js +9 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +16 -0
- package/dist/node/files.d.ts +26 -0
- package/dist/node/files.js +130 -0
- package/dist/pagination.d.ts +39 -0
- package/dist/pagination.js +73 -0
- package/dist/pending.d.ts +14 -0
- package/dist/pending.js +20 -0
- package/dist/polling.d.ts +25 -0
- package/dist/polling.js +63 -0
- package/dist/recipes.d.ts +220 -0
- package/dist/recipes.js +255 -0
- package/dist/resources/artifacts.d.ts +82 -0
- package/dist/resources/artifacts.js +122 -0
- package/dist/resources/datasets.d.ts +178 -0
- package/dist/resources/datasets.js +318 -0
- package/dist/resources/evals.d.ts +110 -0
- package/dist/resources/evals.js +258 -0
- package/dist/resources/misc.d.ts +31 -0
- package/dist/resources/misc.js +45 -0
- package/dist/resources/runs.d.ts +119 -0
- package/dist/resources/runs.js +245 -0
- package/dist/resources/sources.d.ts +118 -0
- package/dist/resources/sources.js +156 -0
- package/dist/rubrics.d.ts +87 -0
- package/dist/rubrics.js +167 -0
- package/dist/trajectory.d.ts +16 -0
- package/dist/trajectory.js +13 -0
- package/dist/transport.d.ts +229 -0
- package/dist/transport.js +678 -0
- package/package.json +53 -4
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import { type CodecTable, type RawResponse, type RequestOptions, type ServerSentEvent, type SSEOptions, type StreamOptions, type TransportLike } from "../transport.js";
|
|
2
|
+
import type { ApiKey, Artifact, Checkpoint, CreateApiKeyRequest, CreateDatasetRequest, CreateImportRequest, CreateSourceRequest, CreateUploadRequest, CreatedApiKey, Dataset, DatasetRecordsPage, DeployArtifactRequest, Deployment, DeploymentStatus, EmbedRequest, EmbedResponse, EvalOutput, EvalRun, EvalTaskOutcome, FilterDatasetRequest, ImportJob, MetricsPage, PlanEvalRequest, PlanEvalResponse, PlanRunRequest, PlanRunResponse, PostEvalScoresRequest, PostEvalScoresResponse, PromoteCheckpointRequest, PushDatasetRequest, RecordFeedbackRequest, RecordFeedbackResponse, RenderDatasetRequest, RenderDatasetResponse, ResumeRunRequest, RouteRequest, RouteResponse, Run, ScoreDatasetRequest, Secret, SetSecretRequest, Source, SyncSourceRequest, TrainableModel, UploadTicket, UsageRecord } from "./models.js";
|
|
3
|
+
/** Which wire keys are renamed to camelCase, per schema (user-keyed maps are left verbatim). */
|
|
4
|
+
export declare const CODEC: CodecTable;
|
|
5
|
+
export interface ListApiKeysParams {
|
|
6
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
7
|
+
limit?: number | undefined;
|
|
8
|
+
cursor?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export type ListApiKeysResponse = {
|
|
11
|
+
data: Array<ApiKey>;
|
|
12
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
13
|
+
nextCursor: string | null;
|
|
14
|
+
};
|
|
15
|
+
export interface ListArtifactsParams {
|
|
16
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
17
|
+
limit?: number | undefined;
|
|
18
|
+
cursor?: string | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export type ListArtifactsResponse = {
|
|
22
|
+
data: Array<Artifact>;
|
|
23
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
24
|
+
nextCursor: string | null;
|
|
25
|
+
};
|
|
26
|
+
export type ListBaseModelsResponse = {
|
|
27
|
+
data: Array<TrainableModel>;
|
|
28
|
+
};
|
|
29
|
+
export interface ListDatasetRecordsParams {
|
|
30
|
+
version?: number | undefined;
|
|
31
|
+
/** Page size (default 100). Values above 1000 are clamped to 1000. */
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
cursor?: string | undefined;
|
|
34
|
+
}
|
|
35
|
+
export interface ListDatasetsParams {
|
|
36
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
37
|
+
limit?: number | undefined;
|
|
38
|
+
cursor?: string | undefined;
|
|
39
|
+
}
|
|
40
|
+
export type ListDatasetsResponse = {
|
|
41
|
+
data: Array<Dataset>;
|
|
42
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
43
|
+
nextCursor: string | null;
|
|
44
|
+
};
|
|
45
|
+
export interface ListDeploymentsParams {
|
|
46
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
47
|
+
limit?: number | undefined;
|
|
48
|
+
cursor?: string | undefined;
|
|
49
|
+
}
|
|
50
|
+
export type ListDeploymentsResponse = {
|
|
51
|
+
data: Array<Deployment>;
|
|
52
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
53
|
+
nextCursor: string | null;
|
|
54
|
+
};
|
|
55
|
+
export interface ListEvalFailuresParams {
|
|
56
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
57
|
+
limit?: number | undefined;
|
|
58
|
+
cursor?: string | undefined;
|
|
59
|
+
model?: string | undefined;
|
|
60
|
+
threshold?: number | undefined;
|
|
61
|
+
}
|
|
62
|
+
export type ListEvalFailuresResponse = {
|
|
63
|
+
evalId: string;
|
|
64
|
+
data: Array<EvalTaskOutcome>;
|
|
65
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
66
|
+
nextCursor: string | null;
|
|
67
|
+
};
|
|
68
|
+
export interface ListEvalOutputsParams {
|
|
69
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
70
|
+
limit?: number | undefined;
|
|
71
|
+
cursor?: string | undefined;
|
|
72
|
+
model?: string | undefined;
|
|
73
|
+
missingScorer?: string | undefined;
|
|
74
|
+
}
|
|
75
|
+
export type ListEvalOutputsResponse = {
|
|
76
|
+
data: Array<EvalOutput>;
|
|
77
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
78
|
+
nextCursor: string | null;
|
|
79
|
+
};
|
|
80
|
+
export interface ListEvalResultsParams {
|
|
81
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
82
|
+
limit?: number | undefined;
|
|
83
|
+
cursor?: string | undefined;
|
|
84
|
+
model?: string | undefined;
|
|
85
|
+
}
|
|
86
|
+
export type ListEvalResultsResponse = {
|
|
87
|
+
data: Array<EvalTaskOutcome>;
|
|
88
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
89
|
+
nextCursor: string | null;
|
|
90
|
+
};
|
|
91
|
+
export interface ListEvalsParams {
|
|
92
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
93
|
+
limit?: number | undefined;
|
|
94
|
+
cursor?: string | undefined;
|
|
95
|
+
}
|
|
96
|
+
export type ListEvalsResponse = {
|
|
97
|
+
data: Array<EvalRun>;
|
|
98
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
99
|
+
nextCursor: string | null;
|
|
100
|
+
};
|
|
101
|
+
export interface ListImportsParams {
|
|
102
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
103
|
+
limit?: number | undefined;
|
|
104
|
+
cursor?: string | undefined;
|
|
105
|
+
}
|
|
106
|
+
export type ListImportsResponse = {
|
|
107
|
+
data: Array<ImportJob>;
|
|
108
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
109
|
+
nextCursor: string | null;
|
|
110
|
+
};
|
|
111
|
+
export interface ListRunCheckpointsParams {
|
|
112
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
113
|
+
limit?: number | undefined;
|
|
114
|
+
cursor?: string | undefined;
|
|
115
|
+
}
|
|
116
|
+
export type ListRunCheckpointsResponse = {
|
|
117
|
+
data: Array<Checkpoint>;
|
|
118
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
119
|
+
nextCursor: string | null;
|
|
120
|
+
};
|
|
121
|
+
export interface ListRunMetricsParams {
|
|
122
|
+
cursor?: string | undefined;
|
|
123
|
+
afterStep?: number | undefined;
|
|
124
|
+
/** Page size (default 1000). Values above 5000 are clamped to 5000. */
|
|
125
|
+
limit?: number | undefined;
|
|
126
|
+
}
|
|
127
|
+
export interface ListRunsParams {
|
|
128
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
129
|
+
limit?: number | undefined;
|
|
130
|
+
cursor?: string | undefined;
|
|
131
|
+
}
|
|
132
|
+
export type ListRunsResponse = {
|
|
133
|
+
data: Array<Run>;
|
|
134
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
135
|
+
nextCursor: string | null;
|
|
136
|
+
};
|
|
137
|
+
export interface ListSecretsParams {
|
|
138
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
139
|
+
limit?: number | undefined;
|
|
140
|
+
cursor?: string | undefined;
|
|
141
|
+
}
|
|
142
|
+
export type ListSecretsResponse = {
|
|
143
|
+
data: Array<Secret>;
|
|
144
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
145
|
+
nextCursor: string | null;
|
|
146
|
+
};
|
|
147
|
+
export interface ListSourcesParams {
|
|
148
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
149
|
+
limit?: number | undefined;
|
|
150
|
+
cursor?: string | undefined;
|
|
151
|
+
dataset?: string | undefined;
|
|
152
|
+
}
|
|
153
|
+
export type ListSourcesResponse = {
|
|
154
|
+
data: Array<Source>;
|
|
155
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
156
|
+
nextCursor: string | null;
|
|
157
|
+
};
|
|
158
|
+
export interface ListUsageParams {
|
|
159
|
+
/** Page size (default 50). Values above 200 are clamped to 200. */
|
|
160
|
+
limit?: number | undefined;
|
|
161
|
+
cursor?: string | undefined;
|
|
162
|
+
}
|
|
163
|
+
export type ListUsageResponse = {
|
|
164
|
+
data: Array<UsageRecord>;
|
|
165
|
+
/** Pass back as `cursor` for the next page; null on the last page (every list endpoint). */
|
|
166
|
+
nextCursor: string | null;
|
|
167
|
+
};
|
|
168
|
+
/** Largest `limit` accepted by `listApiKeys` (the server clamps larger values). */
|
|
169
|
+
export declare const LIST_API_KEYS_LIMIT_MAX = 200;
|
|
170
|
+
/** Largest `limit` accepted by `listArtifacts` (the server clamps larger values). */
|
|
171
|
+
export declare const LIST_ARTIFACTS_LIMIT_MAX = 200;
|
|
172
|
+
/** Largest `limit` accepted by `listDatasetRecords` (the server clamps larger values). */
|
|
173
|
+
export declare const LIST_DATASET_RECORDS_LIMIT_MAX = 1000;
|
|
174
|
+
/** Largest `limit` accepted by `listDatasets` (the server clamps larger values). */
|
|
175
|
+
export declare const LIST_DATASETS_LIMIT_MAX = 200;
|
|
176
|
+
/** Largest `limit` accepted by `listDeployments` (the server clamps larger values). */
|
|
177
|
+
export declare const LIST_DEPLOYMENTS_LIMIT_MAX = 200;
|
|
178
|
+
/** Largest `limit` accepted by `listEvalFailures` (the server clamps larger values). */
|
|
179
|
+
export declare const LIST_EVAL_FAILURES_LIMIT_MAX = 200;
|
|
180
|
+
/** Largest `limit` accepted by `listEvalOutputs` (the server clamps larger values). */
|
|
181
|
+
export declare const LIST_EVAL_OUTPUTS_LIMIT_MAX = 200;
|
|
182
|
+
/** Largest `limit` accepted by `listEvalResults` (the server clamps larger values). */
|
|
183
|
+
export declare const LIST_EVAL_RESULTS_LIMIT_MAX = 200;
|
|
184
|
+
/** Largest `limit` accepted by `listEvals` (the server clamps larger values). */
|
|
185
|
+
export declare const LIST_EVALS_LIMIT_MAX = 200;
|
|
186
|
+
/** Largest `limit` accepted by `listImports` (the server clamps larger values). */
|
|
187
|
+
export declare const LIST_IMPORTS_LIMIT_MAX = 200;
|
|
188
|
+
/** Largest `limit` accepted by `listRunCheckpoints` (the server clamps larger values). */
|
|
189
|
+
export declare const LIST_RUN_CHECKPOINTS_LIMIT_MAX = 200;
|
|
190
|
+
/** Largest `limit` accepted by `listRunMetrics` (the server clamps larger values). */
|
|
191
|
+
export declare const LIST_RUN_METRICS_LIMIT_MAX = 5000;
|
|
192
|
+
/** Largest `limit` accepted by `listRuns` (the server clamps larger values). */
|
|
193
|
+
export declare const LIST_RUNS_LIMIT_MAX = 200;
|
|
194
|
+
/** Largest `limit` accepted by `listSecrets` (the server clamps larger values). */
|
|
195
|
+
export declare const LIST_SECRETS_LIMIT_MAX = 200;
|
|
196
|
+
/** Largest `limit` accepted by `listSources` (the server clamps larger values). */
|
|
197
|
+
export declare const LIST_SOURCES_LIMIT_MAX = 200;
|
|
198
|
+
/** Largest `limit` accepted by `listUsage` (the server clamps larger values). */
|
|
199
|
+
export declare const LIST_USAGE_LIMIT_MAX = 200;
|
|
200
|
+
/** Low-level client: one typed method per OpenAPI operation. */
|
|
201
|
+
export declare class ApiClient {
|
|
202
|
+
readonly transport: TransportLike;
|
|
203
|
+
constructor(transport: TransportLike);
|
|
204
|
+
/**
|
|
205
|
+
* Cancel a queued, running or awaiting_scores evaluation
|
|
206
|
+
*
|
|
207
|
+
* `POST /v1/evals/{id}/cancel`
|
|
208
|
+
*/
|
|
209
|
+
cancelEval(id: string, options?: RequestOptions): Promise<EvalRun>;
|
|
210
|
+
/**
|
|
211
|
+
* Cancel a training run (a running attempt is stopped and billed)
|
|
212
|
+
*
|
|
213
|
+
* `POST /v1/runs/{id}/cancel`
|
|
214
|
+
*/
|
|
215
|
+
cancelRun(id: string, options?: RequestOptions): Promise<Run>;
|
|
216
|
+
/**
|
|
217
|
+
* Create a scoped workspace API key (trainer worker keys are platform config, not keys)
|
|
218
|
+
*
|
|
219
|
+
* `POST /v1/keys`
|
|
220
|
+
*/
|
|
221
|
+
createApiKey(body: CreateApiKeyRequest, options?: RequestOptions): Promise<CreatedApiKey>;
|
|
222
|
+
/**
|
|
223
|
+
* Create an empty dataset
|
|
224
|
+
*
|
|
225
|
+
* `POST /v1/datasets`
|
|
226
|
+
*/
|
|
227
|
+
createDataset(body: CreateDatasetRequest, options?: RequestOptions): Promise<Dataset>;
|
|
228
|
+
/**
|
|
229
|
+
* Import an uploaded file or a Hugging Face dataset into a dataset (async job)
|
|
230
|
+
*
|
|
231
|
+
* `POST /v1/datasets/{name}/imports`
|
|
232
|
+
*/
|
|
233
|
+
createDatasetImport(name: string, body: CreateImportRequest, options?: RequestOptions): Promise<ImportJob>;
|
|
234
|
+
/**
|
|
235
|
+
* Connect an observability provider to a dataset
|
|
236
|
+
*
|
|
237
|
+
* `POST /v1/datasets/{name}/sources`
|
|
238
|
+
*/
|
|
239
|
+
createDatasetSource(name: string, body: CreateSourceRequest, options?: RequestOptions): Promise<Source>;
|
|
240
|
+
/**
|
|
241
|
+
* Generate embeddings from a deployed embedding artifact
|
|
242
|
+
*
|
|
243
|
+
* `POST /v1/embeddings`
|
|
244
|
+
*/
|
|
245
|
+
createEmbeddings(body: EmbedRequest, options?: RequestOptions): Promise<EmbedResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* Queue an evaluation across models on a pinned dataset version (executed by the server)
|
|
248
|
+
*
|
|
249
|
+
* `POST /v1/evals`
|
|
250
|
+
*/
|
|
251
|
+
createEval(body: PlanEvalRequest, options?: RequestOptions): Promise<EvalRun>;
|
|
252
|
+
/**
|
|
253
|
+
* Create and enqueue a training run (pins the dataset version)
|
|
254
|
+
*
|
|
255
|
+
* `POST /v1/runs`
|
|
256
|
+
*/
|
|
257
|
+
createRun(body: PlanRunRequest, options?: RequestOptions): Promise<Run>;
|
|
258
|
+
/**
|
|
259
|
+
* Get an upload URL for a file to import (PUT the bytes, then create an import)
|
|
260
|
+
*
|
|
261
|
+
* `POST /v1/uploads`
|
|
262
|
+
*/
|
|
263
|
+
createUpload(body: CreateUploadRequest, options?: RequestOptions): Promise<UploadTicket>;
|
|
264
|
+
/**
|
|
265
|
+
* Delete a secret (409 while a source uses it)
|
|
266
|
+
*
|
|
267
|
+
* `DELETE /v1/secrets/{name}`
|
|
268
|
+
*/
|
|
269
|
+
deleteSecret(name: string, options?: RequestOptions): Promise<void>;
|
|
270
|
+
/**
|
|
271
|
+
* Remove a source (its dataset and versions stay)
|
|
272
|
+
*
|
|
273
|
+
* `DELETE /v1/sources/{id}`
|
|
274
|
+
*/
|
|
275
|
+
deleteSource(id: string, options?: RequestOptions): Promise<void>;
|
|
276
|
+
/**
|
|
277
|
+
* Deploy or update an artifact under a stable model name
|
|
278
|
+
*
|
|
279
|
+
* `POST /v1/deployments`
|
|
280
|
+
*/
|
|
281
|
+
deployArtifact(body: DeployArtifactRequest, options?: RequestOptions): Promise<Deployment>;
|
|
282
|
+
/**
|
|
283
|
+
* Download an artifact bundle (.grad.tar.gz); verify X-Artifact-Sha256
|
|
284
|
+
*
|
|
285
|
+
* `GET /v1/artifacts/{id}/download`
|
|
286
|
+
*/
|
|
287
|
+
downloadArtifact(id: string, options?: StreamOptions): Promise<RawResponse>;
|
|
288
|
+
/**
|
|
289
|
+
* Save a filtered view of a dataset version
|
|
290
|
+
*
|
|
291
|
+
* `POST /v1/datasets/{name}/filter`
|
|
292
|
+
*/
|
|
293
|
+
filterDataset(name: string, body: FilterDatasetRequest, options?: RequestOptions): Promise<Dataset>;
|
|
294
|
+
/**
|
|
295
|
+
* Get an artifact by id or name@latest
|
|
296
|
+
*
|
|
297
|
+
* `GET /v1/artifacts/{id}`
|
|
298
|
+
*/
|
|
299
|
+
getArtifact(id: string, options?: RequestOptions): Promise<Artifact>;
|
|
300
|
+
/**
|
|
301
|
+
* Get a dataset by name
|
|
302
|
+
*
|
|
303
|
+
* `GET /v1/datasets/{name}`
|
|
304
|
+
*/
|
|
305
|
+
getDataset(name: string, options?: RequestOptions): Promise<Dataset>;
|
|
306
|
+
/**
|
|
307
|
+
* Get deployment status and feedback summary
|
|
308
|
+
*
|
|
309
|
+
* `GET /v1/deployments/{name}`
|
|
310
|
+
*/
|
|
311
|
+
getDeployment(name: string, options?: RequestOptions): Promise<DeploymentStatus>;
|
|
312
|
+
/**
|
|
313
|
+
* Get an evaluation run by ID
|
|
314
|
+
*
|
|
315
|
+
* `GET /v1/evals/{id}`
|
|
316
|
+
*/
|
|
317
|
+
getEval(id: string, options?: RequestOptions): Promise<EvalRun>;
|
|
318
|
+
/**
|
|
319
|
+
* Get a dataset import job
|
|
320
|
+
*
|
|
321
|
+
* `GET /v1/imports/{id}`
|
|
322
|
+
*/
|
|
323
|
+
getImport(id: string, options?: RequestOptions): Promise<ImportJob>;
|
|
324
|
+
/**
|
|
325
|
+
* Get a training run
|
|
326
|
+
*
|
|
327
|
+
* `GET /v1/runs/{id}`
|
|
328
|
+
*/
|
|
329
|
+
getRun(id: string, options?: RequestOptions): Promise<Run>;
|
|
330
|
+
/**
|
|
331
|
+
* Get a secret's metadata (never the value)
|
|
332
|
+
*
|
|
333
|
+
* `GET /v1/secrets/{name}`
|
|
334
|
+
*/
|
|
335
|
+
getSecret(name: string, options?: RequestOptions): Promise<Secret>;
|
|
336
|
+
/**
|
|
337
|
+
* Get a source and its latest sync
|
|
338
|
+
*
|
|
339
|
+
* `GET /v1/sources/{id}`
|
|
340
|
+
*/
|
|
341
|
+
getSource(id: string, options?: RequestOptions): Promise<Source>;
|
|
342
|
+
/**
|
|
343
|
+
* List workspace API keys
|
|
344
|
+
*
|
|
345
|
+
* `GET /v1/keys`
|
|
346
|
+
*/
|
|
347
|
+
listApiKeys(params?: ListApiKeysParams, options?: RequestOptions): Promise<ListApiKeysResponse>;
|
|
348
|
+
/**
|
|
349
|
+
* List immutable artifacts (newest first)
|
|
350
|
+
*
|
|
351
|
+
* `GET /v1/artifacts`
|
|
352
|
+
*/
|
|
353
|
+
listArtifacts(params?: ListArtifactsParams, options?: RequestOptions): Promise<ListArtifactsResponse>;
|
|
354
|
+
/**
|
|
355
|
+
* List trainable base models (the server catalog and price source)
|
|
356
|
+
*
|
|
357
|
+
* `GET /v1/base-models`
|
|
358
|
+
*/
|
|
359
|
+
listBaseModels(options?: RequestOptions): Promise<ListBaseModelsResponse>;
|
|
360
|
+
/**
|
|
361
|
+
* Read records of a dataset version
|
|
362
|
+
*
|
|
363
|
+
* `GET /v1/datasets/{name}/records`
|
|
364
|
+
*/
|
|
365
|
+
listDatasetRecords(name: string, params?: ListDatasetRecordsParams, options?: RequestOptions): Promise<DatasetRecordsPage>;
|
|
366
|
+
/**
|
|
367
|
+
* List datasets (newest first)
|
|
368
|
+
*
|
|
369
|
+
* `GET /v1/datasets`
|
|
370
|
+
*/
|
|
371
|
+
listDatasets(params?: ListDatasetsParams, options?: RequestOptions): Promise<ListDatasetsResponse>;
|
|
372
|
+
/**
|
|
373
|
+
* List deployments
|
|
374
|
+
*
|
|
375
|
+
* `GET /v1/deployments`
|
|
376
|
+
*/
|
|
377
|
+
listDeployments(params?: ListDeploymentsParams, options?: RequestOptions): Promise<ListDeploymentsResponse>;
|
|
378
|
+
/**
|
|
379
|
+
* List failing task records from an evaluation run for mining
|
|
380
|
+
*
|
|
381
|
+
* `GET /v1/evals/{id}/failures`
|
|
382
|
+
*/
|
|
383
|
+
listEvalFailures(id: string, params?: ListEvalFailuresParams, options?: RequestOptions): Promise<ListEvalFailuresResponse>;
|
|
384
|
+
/**
|
|
385
|
+
* Page through generated model outputs (filter by model or by a code scorer that still needs a score)
|
|
386
|
+
*
|
|
387
|
+
* `GET /v1/evals/{id}/outputs`
|
|
388
|
+
*/
|
|
389
|
+
listEvalOutputs(id: string, params?: ListEvalOutputsParams, options?: RequestOptions): Promise<ListEvalOutputsResponse>;
|
|
390
|
+
/**
|
|
391
|
+
* Per-task, per-model results of a completed evaluation
|
|
392
|
+
*
|
|
393
|
+
* `GET /v1/evals/{id}/results`
|
|
394
|
+
*/
|
|
395
|
+
listEvalResults(id: string, params?: ListEvalResultsParams, options?: RequestOptions): Promise<ListEvalResultsResponse>;
|
|
396
|
+
/**
|
|
397
|
+
* List evaluation runs
|
|
398
|
+
*
|
|
399
|
+
* `GET /v1/evals`
|
|
400
|
+
*/
|
|
401
|
+
listEvals(params?: ListEvalsParams, options?: RequestOptions): Promise<ListEvalsResponse>;
|
|
402
|
+
/**
|
|
403
|
+
* List dataset import jobs (newest first)
|
|
404
|
+
*
|
|
405
|
+
* `GET /v1/imports`
|
|
406
|
+
*/
|
|
407
|
+
listImports(params?: ListImportsParams, options?: RequestOptions): Promise<ListImportsResponse>;
|
|
408
|
+
/**
|
|
409
|
+
* List unexpired checkpoints of a run (best and final never expire)
|
|
410
|
+
*
|
|
411
|
+
* `GET /v1/runs/{id}/checkpoints`
|
|
412
|
+
*/
|
|
413
|
+
listRunCheckpoints(id: string, params?: ListRunCheckpointsParams, options?: RequestOptions): Promise<ListRunCheckpointsResponse>;
|
|
414
|
+
/**
|
|
415
|
+
* Training step metrics as JSON pages, or a live SSE stream
|
|
416
|
+
*
|
|
417
|
+
* `GET /v1/runs/{id}/metrics`
|
|
418
|
+
*/
|
|
419
|
+
listRunMetrics(id: string, params?: ListRunMetricsParams, options?: RequestOptions): Promise<MetricsPage>;
|
|
420
|
+
/**
|
|
421
|
+
* Training step metrics as JSON pages, or a live SSE stream (Server-Sent Events; one connection, resume with `lastEventId`)
|
|
422
|
+
*/
|
|
423
|
+
listRunMetricsStream(id: string, params?: ListRunMetricsParams, options?: SSEOptions): AsyncGenerator<ServerSentEvent, void, undefined>;
|
|
424
|
+
/**
|
|
425
|
+
* List training runs (newest first)
|
|
426
|
+
*
|
|
427
|
+
* `GET /v1/runs`
|
|
428
|
+
*/
|
|
429
|
+
listRuns(params?: ListRunsParams, options?: RequestOptions): Promise<ListRunsResponse>;
|
|
430
|
+
/**
|
|
431
|
+
* List workspace secrets (names and metadata only)
|
|
432
|
+
*
|
|
433
|
+
* `GET /v1/secrets`
|
|
434
|
+
*/
|
|
435
|
+
listSecrets(params?: ListSecretsParams, options?: RequestOptions): Promise<ListSecretsResponse>;
|
|
436
|
+
/**
|
|
437
|
+
* List sources (newest first), optionally for one dataset
|
|
438
|
+
*
|
|
439
|
+
* `GET /v1/sources`
|
|
440
|
+
*/
|
|
441
|
+
listSources(params?: ListSourcesParams, options?: RequestOptions): Promise<ListSourcesResponse>;
|
|
442
|
+
/**
|
|
443
|
+
* List billed usage, newest first: one record per run or eval attempt
|
|
444
|
+
*
|
|
445
|
+
* `GET /v1/usage`
|
|
446
|
+
*/
|
|
447
|
+
listUsage(params?: ListUsageParams, options?: RequestOptions): Promise<ListUsageResponse>;
|
|
448
|
+
/**
|
|
449
|
+
* Estimate tasks, model/judge calls, and cost before running an eval
|
|
450
|
+
*
|
|
451
|
+
* `POST /v1/evals/plan`
|
|
452
|
+
*/
|
|
453
|
+
planEval(body: PlanEvalRequest, options?: RequestOptions): Promise<PlanEvalResponse>;
|
|
454
|
+
/**
|
|
455
|
+
* Dry-run a training recipe at zero cost
|
|
456
|
+
*
|
|
457
|
+
* `POST /v1/runs/plan`
|
|
458
|
+
*/
|
|
459
|
+
planRun(body: PlanRunRequest, options?: RequestOptions): Promise<PlanRunResponse>;
|
|
460
|
+
/**
|
|
461
|
+
* Post scores computed by local (SDK-side) code scorers; the eval completes when none are missing
|
|
462
|
+
*
|
|
463
|
+
* `POST /v1/evals/{id}/scores`
|
|
464
|
+
*/
|
|
465
|
+
postEvalScores(id: string, body: PostEvalScoresRequest, options?: RequestOptions): Promise<PostEvalScoresResponse>;
|
|
466
|
+
/**
|
|
467
|
+
* Release an exportable checkpoint as a named, versioned artifact (promoting it again under the same name returns that release)
|
|
468
|
+
*
|
|
469
|
+
* `POST /v1/checkpoints/{id}/promote`
|
|
470
|
+
*/
|
|
471
|
+
promoteCheckpoint(id: string, body?: PromoteCheckpointRequest, options?: RequestOptions): Promise<Artifact>;
|
|
472
|
+
/**
|
|
473
|
+
* Append records as a new dataset version (creates the dataset if needed)
|
|
474
|
+
*
|
|
475
|
+
* `POST /v1/datasets/{name}/records`
|
|
476
|
+
*/
|
|
477
|
+
pushDatasetRecords(name: string, body: PushDatasetRequest, options?: RequestOptions): Promise<Dataset>;
|
|
478
|
+
/**
|
|
479
|
+
* Record deduplicated outcome scores and gold corrections
|
|
480
|
+
*
|
|
481
|
+
* `POST /v1/feedback`
|
|
482
|
+
*/
|
|
483
|
+
recordFeedback(body: RecordFeedbackRequest, options?: RequestOptions): Promise<RecordFeedbackResponse>;
|
|
484
|
+
/**
|
|
485
|
+
* Preview chat-template rendering and loss masks (estimated token counts)
|
|
486
|
+
*
|
|
487
|
+
* `POST /v1/datasets/{name}/render`
|
|
488
|
+
*/
|
|
489
|
+
renderDataset(name: string, body: RenderDatasetRequest, options?: RequestOptions): Promise<RenderDatasetResponse>;
|
|
490
|
+
/**
|
|
491
|
+
* Resume a stopped, failed or cancelled run from its latest checkpoint
|
|
492
|
+
*
|
|
493
|
+
* `POST /v1/runs/{id}/resume`
|
|
494
|
+
*/
|
|
495
|
+
resumeRun(id: string, body?: ResumeRunRequest, options?: RequestOptions): Promise<Run>;
|
|
496
|
+
/**
|
|
497
|
+
* Revoke a workspace API key
|
|
498
|
+
*
|
|
499
|
+
* `DELETE /v1/keys/{id}`
|
|
500
|
+
*/
|
|
501
|
+
revokeApiKey(id: string, options?: RequestOptions): Promise<ApiKey>;
|
|
502
|
+
/**
|
|
503
|
+
* Roll a deployment back to its previous artifact
|
|
504
|
+
*
|
|
505
|
+
* `POST /v1/deployments/{name}/rollback`
|
|
506
|
+
*/
|
|
507
|
+
rollbackDeployment(name: string, options?: RequestOptions): Promise<Deployment>;
|
|
508
|
+
/**
|
|
509
|
+
* Ask a deployed model router which model to call
|
|
510
|
+
*
|
|
511
|
+
* `POST /v1/route`
|
|
512
|
+
*/
|
|
513
|
+
routeRequest(body: RouteRequest, options?: RequestOptions): Promise<RouteResponse>;
|
|
514
|
+
/**
|
|
515
|
+
* Score a dataset's records with a rubric (async; the scores become the next version)
|
|
516
|
+
*
|
|
517
|
+
* `POST /v1/datasets/{name}/score`
|
|
518
|
+
*/
|
|
519
|
+
scoreDataset(name: string, body: ScoreDatasetRequest, options?: RequestOptions): Promise<EvalRun>;
|
|
520
|
+
/**
|
|
521
|
+
* Create or replace a workspace secret (the value is write-only)
|
|
522
|
+
*
|
|
523
|
+
* `POST /v1/secrets`
|
|
524
|
+
*/
|
|
525
|
+
setSecret(body: SetSecretRequest, options?: RequestOptions): Promise<Secret>;
|
|
526
|
+
/**
|
|
527
|
+
* Sync now: queue an import of new traces and scores (returns the running one if a sync is in progress)
|
|
528
|
+
*
|
|
529
|
+
* `POST /v1/sources/{id}/sync`
|
|
530
|
+
*/
|
|
531
|
+
syncSource(id: string, body?: SyncSourceRequest, options?: RequestOptions): Promise<ImportJob>;
|
|
532
|
+
}
|