@toloka-platform/sdk 0.26.2 → 0.27.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.
Files changed (35) hide show
  1. package/README.md +2 -2
  2. package/dist/cli/toloka.js +180 -191
  3. package/dist/cli/toloka.js.jsc +0 -0
  4. package/dist/cli/toloka.js.jsc.sha256 +1 -1
  5. package/dist/cli/toloka.js.sha256 +1 -1
  6. package/examples/video-pair-rating/nodes/adjudicate/node.ts +1 -1
  7. package/examples/video-pair-rating/nodes/adjudicate_op/node.ts +1 -1
  8. package/examples/video-pair-rating/nodes/overall_preference_pick/node.ts +5 -1
  9. package/examples/video-pair-rating/nodes/rate_pair/node.ts +5 -1
  10. package/openapi/gen/api.schemas.ts +52 -756
  11. package/openapi/gen/api.ts +0 -860
  12. package/package.json +2 -2
  13. package/skills/catalog.json +6 -40
  14. package/skills/toloka-build/references/human-work.md +42 -7
  15. package/skills/toloka-build/references/local-setup.md +2 -2
  16. package/skills/toloka-build/references/workflow-and-cli.md +3 -22
  17. package/skills/toloka-get-started/SKILL.md +9 -13
  18. package/src/authoring/index.ts +34 -3
  19. package/src/cli/analytics.ts +0 -31
  20. package/src/cli/context.ts +0 -109
  21. package/src/cli/init.ts +1 -1
  22. package/src/cli/program.ts +0 -6
  23. package/src/cli/project.ts +9 -1
  24. package/src/client.ts +0 -259
  25. package/src/importer.ts +88 -6
  26. package/src/index.ts +2 -2
  27. package/src/pipeline-graph-v1.contract.json +130 -101
  28. package/skills/toloka-fine-tuning/SKILL.md +0 -177
  29. package/skills/toloka-gisting/SKILL.md +0 -186
  30. package/src/cli/batch-inference.ts +0 -267
  31. package/src/cli/commands/batch-inference.ts +0 -116
  32. package/src/cli/commands/models.ts +0 -121
  33. package/src/cli/commands/training.ts +0 -275
  34. package/src/cli/models.ts +0 -304
  35. package/src/cli/trainings.ts +0 -880
@@ -1,27 +1,7 @@
1
- export type BaseModelIdProperty = 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
2
- export interface BaseModel {
3
- id: BaseModelIdProperty;
4
- displayName: string;
5
- provider: string;
6
- upstreamModel: string;
7
- upstreamRevision: string;
8
- upstreamUrl: string;
9
- }
10
-
11
- export type BaseModelId = 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
12
- export type ProjectId = string;
13
-
14
- export type ModelId = string;
15
-
16
- export interface Model {
17
- id: ModelId;
18
- projectId: ProjectId;
1
+ export interface Specialization {
2
+ id: string;
19
3
  name: string;
20
- description: string | null;
21
- baseModelId: BaseModelId;
22
- archivedAt: string | null;
23
- createdAt: string;
24
- updatedAt: string;
4
+ expertsCount: number;
25
5
  }
26
6
 
27
7
  export interface Pagination {
@@ -31,491 +11,7 @@ export interface Pagination {
31
11
  hasMore: boolean;
32
12
  }
33
13
 
34
- export type ModelVersionId = string;
35
-
36
- export type ModelVersionManifestItemMediaType = 'application/octet-stream' | 'application/json';
37
- export type ModelVersionManifestItem = {
38
- path: string;
39
- byteSize: number;
40
- mediaType: ModelVersionManifestItemMediaType;
41
- sha256: string;
42
- };
43
-
44
- export type ModelVersionManifest = ModelVersionManifestItem[];
45
-
46
- export type ModelVersionParent = {
47
- type: 'base_model';
48
- baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
49
- } | {
50
- type: 'model_version';
51
- modelVersionId: string;
52
- };
53
-
54
- export type ModelVersionContent = {
55
- runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
56
- manifest: ModelVersionManifest;
57
- kind: 'lora_adapter';
58
- parent: ModelVersionParent;
59
- } | {
60
- runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
61
- manifest: ModelVersionManifest;
62
- kind: 'full';
63
- parent?: ModelVersionParent;
64
- };
65
-
66
- export type ModelVersionProducer = {
67
- type: 'training_run';
68
- trainingRunId: string;
69
- };
70
-
71
- export interface ModelVersion {
72
- id: ModelVersionId;
73
- modelId: ModelId;
74
- name: string;
75
- revision: number;
76
- content: ModelVersionContent;
77
- producer: ModelVersionProducer;
78
- createdAt: string;
79
- }
80
-
81
- export type ModelVersionContentDownloadContent = {
82
- runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
83
- manifest: ModelVersionManifest;
84
- kind: 'lora_adapter';
85
- parent: ModelVersionParent;
86
- } | {
87
- runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
88
- manifest: ModelVersionManifest;
89
- kind: 'full';
90
- parent?: ModelVersionParent;
91
- };
92
-
93
- export type ModelVersionContentDownloadFilesItemMediaType = 'application/octet-stream' | 'application/json';
94
- export type ModelVersionContentDownloadFilesItem = {
95
- path: string;
96
- byteSize: number;
97
- mediaType: ModelVersionContentDownloadFilesItemMediaType;
98
- sha256: string;
99
- url: string;
100
- };
101
-
102
- export interface ModelVersionContentDownload {
103
- id: ModelVersionId;
104
- name: string;
105
- revision: number;
106
- content: ModelVersionContentDownloadContent;
107
- files: ModelVersionContentDownloadFilesItem[];
108
- }
109
-
110
- export type TrainingId = string;
111
-
112
- export type TrainingModelSource = {
113
- type: 'base_model';
114
- baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
115
- } | {
116
- type: 'model_version';
117
- modelVersionId: string;
118
- };
119
-
120
- export type DatasetFieldValueConditionsItemOperator = 'text_eq' | 'text_neq';
121
- export type FieldRevisionSource = {
122
- type: 'user';
123
- userId: string;
124
- } | {
125
- type: 'system';
126
- source: string;
127
- };
128
-
129
- export type DatasetFieldValueConditionsItem = {
130
- jsonPath: string;
131
- operator: DatasetFieldValueConditionsItemOperator;
132
- value: string | number | boolean | null;
133
- fieldId: string;
134
- latestOnly?: boolean;
135
- sources?: FieldRevisionSource[];
136
- };
137
-
138
- export type DatasetFieldValueConditions = DatasetFieldValueConditionsItem[];
139
-
140
- export type DatasetFieldSourceConditionsItem = {
141
- fieldId: string;
142
- sources: FieldRevisionSource[];
143
- };
144
-
145
- export type DatasetFieldSourceConditions = DatasetFieldSourceConditionsItem[];
146
-
147
- export interface DatasetSliceSelection {
148
- sliceId: string;
149
- }
150
-
151
- export interface DatasetSplitPartInclusion {
152
- fieldId: string;
153
- names: string[];
154
- }
155
-
156
- export type DatasetSplitPartExclusionsItem = {
157
- fieldId: string;
158
- names: string[];
159
- };
160
-
161
- export type DatasetSplitPartExclusions = DatasetSplitPartExclusionsItem[];
162
-
163
- export interface TrainingDatasetItemFilter {
164
- fieldValues: DatasetFieldValueConditions;
165
- fieldSources: DatasetFieldSourceConditions;
166
- missingRevisionFields: string[];
167
- slice?: DatasetSliceSelection;
168
- parts?: DatasetSplitPartInclusion;
169
- excludeParts?: DatasetSplitPartExclusions;
170
- }
171
-
172
- export interface TrainingDatasetSelection {
173
- datasetId: string;
174
- itemFilter: TrainingDatasetItemFilter;
175
- }
176
-
177
- export type SftTrainingConfigurationLoraRank = 8 | 16 | 32;
178
- export type SftTrainingConfigurationBatchSize = 8 | 16 | 32 | 64;
179
- export interface SftTrainingConfiguration {
180
- method: 'sft';
181
- source: TrainingModelSource;
182
- sliceId?: string;
183
- splitFieldId?: string;
184
- trainParts?: string[];
185
- loraRank: SftTrainingConfigurationLoraRank;
186
- epochs: number;
187
- learningRate: number;
188
- batchSize: SftTrainingConfigurationBatchSize;
189
- maxSequenceLength: number;
190
- training: TrainingDatasetSelection;
191
- validation?: TrainingDatasetSelection;
192
- }
193
-
194
- export type GistingTrainingConfigurationGistTokens = 8 | 32 | 64 | '1/4' | '1/8' | '1/16' | '1/32';
195
- export type GistingTrainingConfigurationBatchSize = 8 | 16 | 32 | 64;
196
- export interface GistingTrainingConfiguration {
197
- method: 'gisting';
198
- source: TrainingModelSource;
199
- sliceId?: string;
200
- splitFieldId?: string;
201
- trainParts?: string[];
202
- promptFileId: string;
203
- gistTokens: GistingTrainingConfigurationGistTokens;
204
- epochs: number;
205
- learningRate: number;
206
- batchSize: GistingTrainingConfigurationBatchSize;
207
- maxSequenceLength: number;
208
- training: TrainingDatasetSelection;
209
- validation?: TrainingDatasetSelection;
210
- }
211
-
212
- export type TrainingConfiguration = SftTrainingConfiguration | GistingTrainingConfiguration;
213
-
214
- export interface Training {
215
- id: TrainingId;
216
- projectId: ProjectId;
217
- modelId: ModelId | null;
218
- name: string;
219
- configuration: TrainingConfiguration;
220
- archivedAt: string | null;
221
- createdAt: string;
222
- updatedAt: string;
223
- }
224
-
225
- export type SftTrainingConfigurationInputLoraRank = 8 | 16 | 32;
226
- export type SftTrainingConfigurationInputBatchSize = 8 | 16 | 32 | 64;
227
- export interface SftTrainingConfigurationInput {
228
- method: 'sft';
229
- source: TrainingModelSource;
230
- sliceId: string;
231
- splitFieldId?: string;
232
- trainParts?: string[];
233
- loraRank?: SftTrainingConfigurationInputLoraRank;
234
- epochs?: number;
235
- learningRate?: number;
236
- batchSize?: SftTrainingConfigurationInputBatchSize;
237
- maxSequenceLength?: number;
238
- }
239
-
240
- export type GistingTrainingConfigurationInputGistTokens = 8 | 32 | 64 | '1/4' | '1/8' | '1/16' | '1/32';
241
- export type GistingTrainingConfigurationInputBatchSize = 8 | 16 | 32 | 64;
242
- export interface GistingTrainingConfigurationInput {
243
- method: 'gisting';
244
- source: TrainingModelSource;
245
- sliceId: string;
246
- splitFieldId?: string;
247
- trainParts?: string[];
248
- promptFileId: string;
249
- gistTokens?: GistingTrainingConfigurationInputGistTokens;
250
- epochs?: number;
251
- learningRate?: number;
252
- batchSize?: GistingTrainingConfigurationInputBatchSize;
253
- maxSequenceLength?: number;
254
- }
255
-
256
- export type TrainingConfigurationInput = SftTrainingConfigurationInput | GistingTrainingConfigurationInput;
257
-
258
- export type TrainingCostEstimateInputSetId = string;
259
-
260
- export type TrainingCostEstimateInputSetExports = {
261
- training: string;
262
- validation: string | null;
263
- };
264
-
265
- export interface TrainingCostEstimateInputSet {
266
- id: TrainingCostEstimateInputSetId;
267
- trainingId: TrainingId;
268
- cutoff: string;
269
- expiresAt: string;
270
- exports: TrainingCostEstimateInputSetExports;
271
- createdAt: string;
272
- }
273
-
274
- export type TrainingInputReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
275
- export type TrainingInputReportErrorsItem = {
276
- itemIndex: number;
277
- reason: string;
278
- };
279
-
280
- export type TrainingInputReportTokens = {
281
- p50: number;
282
- p95: number;
283
- max: number;
284
- total?: number | null;
285
- estimatorVersion?: TrainingInputReportTokensEstimatorVersion;
286
- };
287
-
288
- export interface TrainingInputReport {
289
- validCount: number;
290
- invalidCount: number;
291
- errors: TrainingInputReportErrorsItem[];
292
- tokens: TrainingInputReportTokens;
293
- }
294
-
295
- export type TrainingInputExportFailureCode = 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
296
- export type TrainingInputExportFailure = {
297
- timestamp: string;
298
- code: TrainingInputExportFailureCode;
299
- message: string;
300
- } | null;
301
-
302
- export type TrainingCostEstimateInputsTraining = {
303
- datasetId: string;
304
- datasetExportId: string;
305
- report: TrainingInputReport | null;
306
- failure: TrainingInputExportFailure | null;
307
- heldOutRows?: number;
308
- };
309
-
310
- export type TrainingCostEstimateInputsValidation = {
311
- datasetId: string;
312
- datasetExportId: string;
313
- report: TrainingInputReport | null;
314
- failure: TrainingInputExportFailure | null;
315
- heldOutRows?: number;
316
- } | null;
317
-
318
- export interface TrainingCostEstimateInputs {
319
- training: TrainingCostEstimateInputsTraining;
320
- validation: TrainingCostEstimateInputsValidation;
321
- }
322
-
323
- export type TrainingCostEstimateIssueCode = 'unsupported_source' | 'export_failed' | 'invalid_examples' | 'empty_selection' | 'row_limit_exceeded' | 'token_limit_exceeded' | 'estimator_mismatch' | 'unsupported_duration';
324
- export type TrainingCostEstimateIssuePurpose = 'training' | 'validation' | null;
325
- export interface TrainingCostEstimateIssue {
326
- code: TrainingCostEstimateIssueCode;
327
- message: string;
328
- purpose: TrainingCostEstimateIssuePurpose;
329
- }
330
-
331
- export interface TrainingResourceBudget {
332
- methodWorkUnits: number;
333
- estimatedGpuSeconds: number;
334
- estimatedWallSeconds: number;
335
- maximumWallSeconds: number;
336
- maximumGpuSeconds: number;
337
- gpuCount: number;
338
- }
339
-
340
- export type TrainingCostEstimate = {
341
- trainingId: TrainingId;
342
- inputSetId: TrainingCostEstimateInputSetId;
343
- cutoff: string;
344
- inputs: TrainingCostEstimateInputs;
345
- capabilityVersion: string;
346
- pricingVersion: string;
347
- calculatedAt: string;
348
- status: 'blocked';
349
- issues: TrainingCostEstimateIssue[];
350
- } | {
351
- trainingId: TrainingId;
352
- inputSetId: TrainingCostEstimateInputSetId;
353
- cutoff: string;
354
- inputs: TrainingCostEstimateInputs;
355
- capabilityVersion: string;
356
- pricingVersion: string;
357
- calculatedAt: string;
358
- status: 'ready';
359
- issues: TrainingCostEstimateIssue[];
360
- budget: TrainingResourceBudget;
361
- maximumCharge: string;
362
- currency: 'USD';
363
- fingerprint: string;
364
- };
365
-
366
- export type TrainingRunId = string;
367
-
368
- export type TrainingRunStatus = 'queued' | 'running' | 'stopping' | 'blocked' | 'completed' | 'failed' | 'canceled';
369
- export type TrainingRunProgress = {
370
- phase: string;
371
- step: number | null;
372
- total: number | null;
373
- message: string | null;
374
- } | null;
375
-
376
- export type TrainingRunBlockedReason = 'funds' | 'payment' | 'billing_review' | null;
377
- export type TrainingRunError = {
378
- code: 'data_export_failed' | 'input_report_mismatch' | 'billing_rejected' | 'provider_failed' | 'provider_timeout' | 'invalid_provider_output' | 'provider_output_changed' | 'prompt_changed' | 'payment_window_expired' | 'canceled';
379
- message: string;
380
- retryable: boolean;
381
- } | null;
382
-
383
- export type TrainingRunBillingStatus = 'pending' | 'reserved' | 'release_pending' | 'released' | 'settled' | 'payment_required' | 'resolved' | 'reconciliation_required';
384
- export type TrainingRunQuote = {
385
- inputSetId: TrainingCostEstimateInputSetId;
386
- cutoff: string;
387
- inputs: TrainingCostEstimateInputs;
388
- capabilityVersion: string;
389
- pricingVersion: string;
390
- calculatedAt: string;
391
- budget: TrainingResourceBudget;
392
- maximumCharge: string;
393
- currency: 'USD';
394
- };
395
-
396
- export type TrainingRunInputsTrainingContract = 'openai-chat-v1';
397
- export interface TrainingInputItemFilter {
398
- fieldValues?: DatasetFieldValueConditions;
399
- fieldSources?: DatasetFieldSourceConditions;
400
- missingRevisionFields?: string[];
401
- createdBefore: string;
402
- slice?: DatasetSliceSelection;
403
- parts?: DatasetSplitPartInclusion;
404
- excludeParts?: DatasetSplitPartExclusions;
405
- }
406
-
407
- export type TrainingRunInputsTraining = {
408
- datasetId: string;
409
- datasetExportId: string;
410
- datasetFileId: string;
411
- itemFilter: TrainingInputItemFilter;
412
- format: 'training-jsonl';
413
- contract: TrainingRunInputsTrainingContract;
414
- byteSize: number;
415
- sha256: string;
416
- report: TrainingInputReport;
417
- };
418
-
419
- export type TrainingRunInputsValidationContract = 'openai-chat-v1';
420
- export type TrainingRunInputsValidation = {
421
- datasetId: string;
422
- datasetExportId: string;
423
- datasetFileId: string;
424
- itemFilter: TrainingInputItemFilter;
425
- format: 'training-jsonl';
426
- contract: TrainingRunInputsValidationContract;
427
- byteSize: number;
428
- sha256: string;
429
- report: TrainingInputReport;
430
- } | null;
431
-
432
- export type TrainingRunInputs = {
433
- training: TrainingRunInputsTraining;
434
- validation: TrainingRunInputsValidation;
435
- } | null;
436
-
437
- export interface TrainingRun {
438
- id: TrainingRunId;
439
- trainingId: TrainingId;
440
- configuration: TrainingConfiguration;
441
- estimateInputSetId: TrainingCostEstimateInputSetId;
442
- estimateFingerprint: string;
443
- outputModelVersionId: ModelVersionId;
444
- outputModelVersionName: string;
445
- maxCost: string;
446
- status: TrainingRunStatus;
447
- outputModelVersionRevision: number | null;
448
- progress: TrainingRunProgress;
449
- blockedReason: TrainingRunBlockedReason;
450
- error: TrainingRunError;
451
- billingStatus: TrainingRunBillingStatus;
452
- chargedAmount: string | null;
453
- message: string | null;
454
- quote: TrainingRunQuote;
455
- inputCutoff: string;
456
- inputs: TrainingRunInputs;
457
- createdAt: string;
458
- updatedAt: string;
459
- }
460
-
461
- export type TrainingRunLogsEntriesItemLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error';
462
- export type TrainingRunLogsEntriesItem = {
463
- timestamp: string;
464
- level: TrainingRunLogsEntriesItemLevel;
465
- message: string;
466
- };
467
-
468
- export interface TrainingRunLogs {
469
- entries: TrainingRunLogsEntriesItem[];
470
- nextCursor: string | null;
471
- complete: boolean;
472
- truncated: boolean;
473
- }
474
-
475
- export type TrainingRunMetricsUnavailableReason = 'not_configured' | 'unresolved' | null;
476
- export type TrainingRunMetricsMetricsItemMetric = 'training_loss' | 'validation_loss' | 'learning_rate' | 'training_token_accuracy' | 'validation_token_accuracy' | null;
477
- export type TrainingRunMetricsMetricsItemLatestNonFinite = 'nan' | 'positive_infinity' | 'negative_infinity' | null;
478
- export type TrainingRunMetricsMetricsItemLatest = {
479
- step: number;
480
- timestamp: number;
481
- value: number | null;
482
- nonFinite: TrainingRunMetricsMetricsItemLatestNonFinite;
483
- };
484
-
485
- export type TrainingRunMetricsMetricsItem = {
486
- key: string;
487
- metric: TrainingRunMetricsMetricsItemMetric;
488
- latest: TrainingRunMetricsMetricsItemLatest;
489
- };
490
-
491
- export interface TrainingRunMetrics {
492
- available: boolean;
493
- unavailableReason: TrainingRunMetricsUnavailableReason;
494
- truncated: boolean;
495
- metrics: TrainingRunMetricsMetricsItem[];
496
- }
497
-
498
- export type TrainingRunMetricHistoryMetric = 'training_loss' | 'validation_loss' | 'learning_rate' | 'training_token_accuracy' | 'validation_token_accuracy' | null;
499
- export type TrainingRunMetricHistoryPointsItemNonFinite = 'nan' | 'positive_infinity' | 'negative_infinity' | null;
500
- export type TrainingRunMetricHistoryPointsItem = {
501
- step: number;
502
- timestamp: number;
503
- value: number | null;
504
- nonFinite: TrainingRunMetricHistoryPointsItemNonFinite;
505
- };
506
-
507
- export interface TrainingRunMetricHistory {
508
- key: string;
509
- metric: TrainingRunMetricHistoryMetric;
510
- points: TrainingRunMetricHistoryPointsItem[];
511
- truncated: boolean;
512
- }
513
-
514
- export interface Specialization {
515
- id: string;
516
- name: string;
517
- expertsCount: number;
518
- }
14
+ export type ProjectId = string;
519
15
 
520
16
  export interface ExpertList {
521
17
  id: string;
@@ -1028,6 +524,33 @@ export interface SampleJob {
1028
524
  createdAt: string;
1029
525
  }
1030
526
 
527
+ export type DatasetFieldValueConditionsItemOperator = 'text_eq' | 'text_neq';
528
+ export type FieldRevisionSource = {
529
+ type: 'user';
530
+ userId: string;
531
+ } | {
532
+ type: 'system';
533
+ source: string;
534
+ };
535
+
536
+ export type DatasetFieldValueConditionsItem = {
537
+ jsonPath: string;
538
+ operator: DatasetFieldValueConditionsItemOperator;
539
+ value: string | number | boolean | null;
540
+ fieldId: string;
541
+ latestOnly?: boolean;
542
+ sources?: FieldRevisionSource[];
543
+ };
544
+
545
+ export type DatasetFieldValueConditions = DatasetFieldValueConditionsItem[];
546
+
547
+ export type DatasetFieldSourceConditionsItem = {
548
+ fieldId: string;
549
+ sources: FieldRevisionSource[];
550
+ };
551
+
552
+ export type DatasetFieldSourceConditions = DatasetFieldSourceConditionsItem[];
553
+
1031
554
  export type DatasetSliceItemFilter = {
1032
555
  fieldValues?: DatasetFieldValueConditions;
1033
556
  fieldSources?: DatasetFieldSourceConditions;
@@ -1057,27 +580,6 @@ export interface DatasetSlice {
1057
580
 
1058
581
  export type ExportId = string;
1059
582
 
1060
- export type DatasetExportReportErrorsItem = {
1061
- itemIndex: number;
1062
- reason: string;
1063
- };
1064
-
1065
- export type DatasetExportReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
1066
- export type DatasetExportReportTokens = {
1067
- p50: number;
1068
- p95: number;
1069
- max: number;
1070
- total?: number | null;
1071
- estimatorVersion: DatasetExportReportTokensEstimatorVersion;
1072
- };
1073
-
1074
- export interface DatasetExportReport {
1075
- validCount: number;
1076
- invalidCount: number;
1077
- errors: DatasetExportReportErrorsItem[];
1078
- tokens: DatasetExportReportTokens;
1079
- }
1080
-
1081
583
  export type ExportJobStatus = 'running' | 'succeeded' | 'failed';
1082
584
  export type ExportJobResult = {
1083
585
  downloadUrl: string | null;
@@ -1096,7 +598,6 @@ export interface ExportJob {
1096
598
  status: ExportJobStatus;
1097
599
  createdAt: string;
1098
600
  result: ExportJobResult;
1099
- report: DatasetExportReport | null;
1100
601
  error: ExportJobError;
1101
602
  }
1102
603
 
@@ -1119,6 +620,22 @@ export interface InvalidFieldSchema {
1119
620
  reason: string;
1120
621
  }
1121
622
 
623
+ export interface DatasetSliceSelection {
624
+ sliceId: string;
625
+ }
626
+
627
+ export interface DatasetSplitPartInclusion {
628
+ fieldId: string;
629
+ names: string[];
630
+ }
631
+
632
+ export type DatasetSplitPartExclusionsItem = {
633
+ fieldId: string;
634
+ names: string[];
635
+ };
636
+
637
+ export type DatasetSplitPartExclusions = DatasetSplitPartExclusionsItem[];
638
+
1122
639
  export type RootNodeSettingsItemFilter = {
1123
640
  fieldValues?: DatasetFieldValueConditions;
1124
641
  fieldSources?: DatasetFieldSourceConditions;
@@ -1531,9 +1048,11 @@ export interface GenerationNodeSettings {
1531
1048
  audienceAndPricing?: GenerationNodeSettingsAudienceAndPricing;
1532
1049
  onboarding: Onboarding;
1533
1050
  exam?: QualificationExam;
1051
+ allowedExperts?: string[];
1052
+ excludedExperts?: string[];
1053
+ checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', CheckTestCases>>;
1534
1054
  reuseAudienceWithNodeId?: GenerationNodeSettingsReuseAudienceWithNodeId;
1535
1055
  smartSearch?: SmartSearch | null;
1536
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', CheckTestCases>>;
1537
1056
  }
1538
1057
 
1539
1058
  export interface GenerationNode {
@@ -1611,9 +1130,10 @@ export interface QuorumNodeSettings {
1611
1130
  overlap: number;
1612
1131
  onboarding: Onboarding;
1613
1132
  exam?: QualificationExam;
1133
+ excludedExperts?: string[];
1134
+ checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', CheckTestCases>>;
1614
1135
  reuseAudienceWithNodeId?: QuorumNodeSettingsReuseAudienceWithNodeId;
1615
1136
  smartSearch?: SmartSearch | null;
1616
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', CheckTestCases>>;
1617
1137
  }
1618
1138
 
1619
1139
  export interface QuorumNode {
@@ -1906,100 +1426,6 @@ export interface RunLintsResult {
1906
1426
  nodesInUse: string[];
1907
1427
  }
1908
1428
 
1909
- export type BatchInferenceModel = {
1910
- type: 'base_model';
1911
- baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
1912
- } | {
1913
- type: 'model_version';
1914
- modelVersionId: string;
1915
- };
1916
-
1917
- export type BatchInferenceMode = {
1918
- type: 'single_turn';
1919
- };
1920
-
1921
- export type BatchInferenceRunId = string;
1922
-
1923
- export type BatchInferenceRunSampling = {
1924
- maxOutputTokens: number;
1925
- temperature?: number;
1926
- topP?: number;
1927
- stop?: string[];
1928
- seed?: number;
1929
- samplesPerRow?: number;
1930
- };
1931
-
1932
- export type BatchInferenceRunOutputType = 'field' | 'dataset';
1933
- export type BatchInferenceRunOutput = {
1934
- type: BatchInferenceRunOutputType;
1935
- datasetId: DatasetId;
1936
- fieldId: DatasetFieldId;
1937
- };
1938
-
1939
- export type BatchInferenceRunStatus = 'preparing' | 'awaiting_confirmation' | 'queued' | 'running' | 'writing_outputs' | 'stopping' | 'blocked' | 'completed' | 'failed' | 'canceled';
1940
- export type BatchInferenceRunProgressPhase = 'queued' | 'preparing' | 'generating' | 'finishing';
1941
- export type BatchInferenceRunProgressRequests = {
1942
- done: number;
1943
- total: number;
1944
- };
1945
-
1946
- export type BatchInferenceRunProgress = {
1947
- phase: BatchInferenceRunProgressPhase;
1948
- requests?: BatchInferenceRunProgressRequests;
1949
- } | null;
1950
-
1951
- export type BatchInferenceRunBlockedReason = 'funds' | 'payment' | 'billing_review' | null;
1952
- export type BatchInferenceRunError = {
1953
- code: 'requests_export_failed' | 'no_requests' | 'selection_too_large' | 'billing_rejected' | 'provider_failed' | 'provider_timeout' | 'invalid_provider_output' | 'output_rejected' | 'payment_window_expired' | 'canceled';
1954
- message: string;
1955
- } | null;
1956
-
1957
- export type BatchInferenceRunQuote = {
1958
- requests: number;
1959
- skippedRows: number;
1960
- maximumCharge: string;
1961
- currency: 'USD';
1962
- confirmBefore: string | null;
1963
- } | null;
1964
-
1965
- export type BatchInferenceRunResultErrorCounts = {[key: string]: number};
1966
-
1967
- export type BatchInferenceRunResultErrorSamplesItem = {
1968
- itemId: string;
1969
- code: string;
1970
- message: string;
1971
- };
1972
-
1973
- export type BatchInferenceRunResult = {
1974
- written: number;
1975
- failed: number;
1976
- truncated: number;
1977
- inputTokens: number;
1978
- outputTokens: number;
1979
- errorCounts: BatchInferenceRunResultErrorCounts;
1980
- errorSamples: BatchInferenceRunResultErrorSamplesItem[];
1981
- } | null;
1982
-
1983
- export interface BatchInferenceRun {
1984
- id: BatchInferenceRunId;
1985
- projectId: ProjectId;
1986
- datasetId: DatasetId;
1987
- model: BatchInferenceModel;
1988
- mode: BatchInferenceMode;
1989
- sampling: BatchInferenceRunSampling;
1990
- output: BatchInferenceRunOutput;
1991
- status: BatchInferenceRunStatus;
1992
- progress: BatchInferenceRunProgress;
1993
- blockedReason: BatchInferenceRunBlockedReason;
1994
- message: string | null;
1995
- error: BatchInferenceRunError;
1996
- quote: BatchInferenceRunQuote;
1997
- chargedAmount: string | null;
1998
- result: BatchInferenceRunResult;
1999
- createdAt: string;
2000
- updatedAt: string;
2001
- }
2002
-
2003
1429
  export interface DatasetItemFilter {
2004
1430
  fieldValues?: DatasetFieldValueConditions;
2005
1431
  fieldSources?: DatasetFieldSourceConditions;
@@ -2010,91 +1436,6 @@ export interface DatasetItemFilter {
2010
1436
  createdBefore?: string;
2011
1437
  }
2012
1438
 
2013
- export type ListBaseModels200 = {
2014
- baseModels: BaseModel[];
2015
- };
2016
-
2017
- export type ListProjectModelsParams = {
2018
- limit?: number;
2019
- offset?: number;
2020
- };
2021
-
2022
- export type ListProjectModels200 = {
2023
- models: Model[];
2024
- pagination: Pagination;
2025
- };
2026
-
2027
- export type CreateProjectModelBody = {
2028
- name: string;
2029
- description?: string | null;
2030
- baseModelId: BaseModelId;
2031
- };
2032
-
2033
- export type ListModelVersionsParams = {
2034
- limit?: number;
2035
- offset?: number;
2036
- };
2037
-
2038
- export type ListModelVersions200 = {
2039
- versions: ModelVersion[];
2040
- pagination: Pagination;
2041
- };
2042
-
2043
- export type ListProjectTrainingsParams = {
2044
- limit?: number;
2045
- offset?: number;
2046
- };
2047
-
2048
- export type ListProjectTrainings200 = {
2049
- trainings: Training[];
2050
- pagination: Pagination;
2051
- };
2052
-
2053
- export type CreateProjectTrainingBody = {
2054
- name: string;
2055
- configuration: TrainingConfigurationInput;
2056
- };
2057
-
2058
- export type UpdateTrainingMetadataBody = {
2059
- name?: string;
2060
- archived?: boolean;
2061
- };
2062
-
2063
- export type ReplaceTrainingConfigurationBody = {
2064
- configuration: TrainingConfigurationInput;
2065
- };
2066
-
2067
- export type PrepareTrainingCostEstimateInputsBody = { [key: string]: unknown };
2068
-
2069
- export type EstimateTrainingCostBody = {
2070
- inputSetId: TrainingCostEstimateInputSetId;
2071
- };
2072
-
2073
- export type CreateTrainingRunBody = {
2074
- inputSetId: string;
2075
- estimateFingerprint: string;
2076
- versionName: string;
2077
- };
2078
-
2079
- export type ListTrainingRunsParams = {
2080
- limit?: number;
2081
- offset?: number;
2082
- };
2083
-
2084
- export type ListTrainingRuns200 = {
2085
- trainingRuns: TrainingRun[];
2086
- pagination: Pagination;
2087
- };
2088
-
2089
- export type GetTrainingRunLogsParams = {
2090
- cursor?: string;
2091
- limit?: number;
2092
- };
2093
-
2094
- export type GetTrainingRunMetricHistoryParams = {
2095
- resolution?: number;
2096
- };
2097
-
2098
1439
  export type ListAudienceSpecializationsParams = {
2099
1440
  limit?: number;
2100
1441
  offset?: number;
@@ -2498,48 +1839,3 @@ export type CreatePipelineCheckBody = {
2498
1839
  checkId: string;
2499
1840
  };
2500
1841
 
2501
- export type CreateBatchInferenceRunBodyItemFilter = {
2502
- fieldValues?: DatasetFieldValueConditions;
2503
- fieldSources?: DatasetFieldSourceConditions;
2504
- missingRevisionFields?: string[];
2505
- slice?: DatasetSliceSelection;
2506
- parts?: DatasetSplitPartInclusion;
2507
- excludeParts?: DatasetSplitPartExclusions;
2508
- };
2509
-
2510
- export type CreateBatchInferenceRunBodySampling = {
2511
- maxOutputTokens: number;
2512
- temperature?: number;
2513
- topP?: number;
2514
- stop?: string[];
2515
- seed?: number;
2516
- samplesPerRow?: number;
2517
- };
2518
-
2519
- export type CreateBatchInferenceRunBodyOutput = {
2520
- type: 'field';
2521
- fieldName: string;
2522
- } | {
2523
- type: 'dataset';
2524
- name: string;
2525
- };
2526
-
2527
- export type CreateBatchInferenceRunBody = {
2528
- datasetId: string;
2529
- itemFilter?: CreateBatchInferenceRunBodyItemFilter;
2530
- model: BatchInferenceModel;
2531
- mode?: BatchInferenceMode;
2532
- sampling: CreateBatchInferenceRunBodySampling;
2533
- output: CreateBatchInferenceRunBodyOutput;
2534
- };
2535
-
2536
- export type ListBatchInferenceRunsParams = {
2537
- limit?: number;
2538
- offset?: number;
2539
- };
2540
-
2541
- export type ListBatchInferenceRuns200 = {
2542
- batchInferenceRuns: BatchInferenceRun[];
2543
- pagination: Pagination;
2544
- };
2545
-