@toloka-platform/sdk 0.25.2 → 0.26.0
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/cli/toloka.js +185 -170
- package/dist/cli/toloka.js.jsc +0 -0
- package/dist/cli/toloka.js.jsc.sha256 +1 -1
- package/dist/cli/toloka.js.sha256 +1 -1
- package/examples/app-crowdtesting/nodes/app-flow-test/node.ts +24 -0
- package/examples/egocentric-video-collection/nodes/record-activity/node.ts +24 -0
- package/examples/face-image-collection/nodes/annotate-faces/node.ts +16 -1
- package/examples/product-moderation/nodes/moderate-product/instruction.ts +4 -0
- package/examples/product-moderation/nodes/moderate-product/node.ts +19 -0
- package/examples/video-pair-rating/nodes/adjudicate/node.ts +18 -1
- package/examples/video-pair-rating/nodes/adjudicate_op/node.ts +18 -1
- package/examples/video-pair-rating/nodes/overall_preference_pick/node.ts +18 -1
- package/examples/video-pair-rating/nodes/rate_pair/node.ts +18 -1
- package/openapi/gen/api.schemas.ts +50 -42
- package/package.json +3 -3
- package/skills/catalog.json +6 -6
- package/skills/toloka-build/SKILL.md +1 -1
- package/skills/toloka-build/references/human-work.md +97 -8
- package/skills/toloka-build/references/workflow-and-cli.md +2 -2
- package/src/authoring/index.ts +13 -2
- package/src/checks/task-ui-typecheck.ts +1 -1
- package/src/cli/analytics.ts +1 -0
- package/src/cli/commands/schema.ts +27 -0
- package/src/cli/program.ts +2 -0
- package/src/cli/schema.ts +633 -0
- package/src/graph-rules.json +3 -1
- package/src/pipeline-graph-v1.contract.json +12 -4
- package/src/validate.ts +23 -2
package/dist/cli/toloka.js.jsc
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2cd7a06e08df21f92e98b5e094d8b288c87daba8d018903bd41efba35668e22b toloka.js.jsc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c787f5c67533e4b13303cbc26ce5c204ab0522c8c086ad7f2986ddc4544a2f0f toloka.js
|
|
@@ -175,6 +175,9 @@ failed task.
|
|
|
175
175
|
- Is the video between 5 and 30 minutes?
|
|
176
176
|
- Is the screen readable throughout, with no editing or trimming?
|
|
177
177
|
|
|
178
|
+
## Rules for this task
|
|
179
|
+
Upload only your own recording of the whole session, without editing or trimming it, and type the device model and Android version yourself. Do not use AI tools in any form.
|
|
180
|
+
|
|
178
181
|
## Examples
|
|
179
182
|
- Pass: the recording begins on your home screen, shows the install link, the
|
|
180
183
|
installation, and the app launching; two Workout scans reach the form analysis
|
|
@@ -194,6 +197,27 @@ is more valuable than a clean one.
|
|
|
194
197
|
Turn on Do Not Disturb before recording so your notifications stay private, and
|
|
195
198
|
use a throwaway or test account to sign in where the app allows it. Recordings
|
|
196
199
|
are used only to assess app stability and flow correctness: https://example.com/privacy-policy`,
|
|
200
|
+
expectedExpertBehavior: `Task: Experts install a pre-release Android app on their own device, screen-record themselves going through set app flows, upload the recording, and enter their device model and OS version.
|
|
201
|
+
Process:
|
|
202
|
+
1. Start a screen recording on the device.
|
|
203
|
+
2. Uninstall any existing copy, open the install link from the task page and install the build.
|
|
204
|
+
3. Sign in, run Workout scan and Meal scan at least twice each, and open Today, Programs and Insights.
|
|
205
|
+
4. Stop the recording, upload it, and type the device model and the Android version.
|
|
206
|
+
Outside the task page: opening the install link and using the app on the expert's own Android device is the task, so a long absence from the task page is expected.
|
|
207
|
+
Media: the install link on the task page opens an external page with the pre-release build; experts open it on their own Android device to install the build, so this visit is expected. The screen recording is made on the device and uploaded in the task.
|
|
208
|
+
Answer fields:
|
|
209
|
+
- app_test_video: an upload of the expert's own screen recording of the whole session, 5 to 30 minutes, not edited or trimmed.
|
|
210
|
+
- device_model: short free text typed by the expert, such as "Pixel 7a".
|
|
211
|
+
- os_version: short free text typed by the expert, such as "14".
|
|
212
|
+
AI tools: experts may not use AI tools in any form for this task, including chatbots, AI assistants, AI browser agents, and AI translation or editing tools.
|
|
213
|
+
Expected behavior:
|
|
214
|
+
- a click on the install link, then a long absence from the task page while the expert records;
|
|
215
|
+
- one video upload;
|
|
216
|
+
- short typed values in device_model and os_version.
|
|
217
|
+
Not allowed:
|
|
218
|
+
- uploading a recording that is not the expert's own, or one that is edited or trimmed;
|
|
219
|
+
- using AI tools in any form;
|
|
220
|
+
- letting an AI agent fill in the task.`,
|
|
197
221
|
ui: {
|
|
198
222
|
code: `<View.Flex vertical={true} gap={'1.25rem'}>
|
|
199
223
|
<View.Card title={'Step 1: Install Acme Fitness'} variant={'info'}>
|
|
@@ -222,10 +222,34 @@ Record first-person videos of yourself doing household tasks to help train AI to
|
|
|
222
222
|
|
|
223
223
|
---
|
|
224
224
|
|
|
225
|
+
## Rules for this task
|
|
226
|
+
|
|
227
|
+
Record the video yourself with the camera in the task. Do not submit a downloaded, generated or edited video, or one recorded by someone else. Do not use AI tools in any form.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
225
231
|
## Questions?
|
|
226
232
|
|
|
227
233
|
If you have any questions or run into issues, let us know through this short [survey](https://example.com/egocentric/support-survey). We're happy to help you get set up and recording.
|
|
228
234
|
`,
|
|
235
|
+
expectedExpertBehavior: `Task: Experts record a first-person video of themselves doing one household task at home and select its task category.
|
|
236
|
+
Process:
|
|
237
|
+
1. Mount the phone on the head so the camera points down at the hands.
|
|
238
|
+
2. Open the camera in the task, lock landscape mode and record one household task for 2 to 10 minutes.
|
|
239
|
+
3. Check the preview, re-record if needed, select the task category and submit.
|
|
240
|
+
Outside the task page: experts may open the linked video instructions and the guide on mounting the phone; the video itself is recorded in the task.
|
|
241
|
+
Media: experts may watch the video instructions linked in the task; the video itself is recorded with the camera in the task, in landscape and without audio.
|
|
242
|
+
Answer fields:
|
|
243
|
+
- video_file: a video recorded with the camera in the task.
|
|
244
|
+
- task_category: a choice from the 13 accepted categories.
|
|
245
|
+
AI tools: experts may not use AI tools in any form for this task, including chatbots, AI assistants, AI browser agents, and AI translation or editing tools.
|
|
246
|
+
Expected behavior:
|
|
247
|
+
- a recording made in the task, at least 2 minutes long, followed by the category choice;
|
|
248
|
+
- possibly page exits to the video instructions or the mounting guide.
|
|
249
|
+
Not allowed:
|
|
250
|
+
- submitting a video that is downloaded, generated, edited or recorded by someone else;
|
|
251
|
+
- using AI tools in any form;
|
|
252
|
+
- letting an AI agent fill in the task.`,
|
|
229
253
|
ui: {
|
|
230
254
|
code: `<View.Flex vertical gap={'1rem'}>
|
|
231
255
|
<View.Alert
|
|
@@ -53,7 +53,22 @@ export const annotateFaces = generation("annotate_faces", {
|
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
55
|
instruction:
|
|
56
|
-
"Draw one tight rectangular bounding box around every visible human face. Do not annotate faces shown only in photographs, posters, or reflections.",
|
|
56
|
+
"Draw one tight rectangular bounding box around every visible human face. Do not annotate faces shown only in photographs, posters, or reflections. Draw every box yourself and do not use AI tools in any form.",
|
|
57
|
+
expectedExpertBehavior: `Task: Experts draw a tight bounding box around every visible human face in an image.
|
|
58
|
+
Process:
|
|
59
|
+
1. Look at the image on the task page.
|
|
60
|
+
2. Draw one rectangle around each visible human face; skip faces shown only in photographs, posters or reflections.
|
|
61
|
+
Outside the task page: the task does not require leaving the task page.
|
|
62
|
+
Media: one image shown on the task page.
|
|
63
|
+
Answer fields:
|
|
64
|
+
- draft_faces: rectangles drawn on the image with the annotation tool, one per face; nothing is typed or pasted.
|
|
65
|
+
AI tools: experts may not use AI tools in any form for this task, including chatbots, AI assistants, AI browser agents, and AI translation or editing tools.
|
|
66
|
+
Expected behavior:
|
|
67
|
+
- drawing on the image on the task page;
|
|
68
|
+
- no typing, no pasting, no page exits.
|
|
69
|
+
Not allowed:
|
|
70
|
+
- using AI tools in any form, including automatic face detection;
|
|
71
|
+
- letting an AI agent fill in the task.`,
|
|
57
72
|
ui: {
|
|
58
73
|
code: "<Field.ImageAnnotation path={'draft_faces'} image={actions.get('image_url')} tools={['rectangle']} labels={[{ label: 'Face', value: 'face', color: 'blue' }]} navigator={true} />",
|
|
59
74
|
data: '{"image_url":"https://example.com/face.jpg"}',
|
|
@@ -74,4 +74,8 @@ Alcohol and nicotine are Acceptable edgy content. Psychedelic art and ambiguous
|
|
|
74
74
|
## Rationale
|
|
75
75
|
|
|
76
76
|
In one to three sentences, name the specific element (visible text, symbol, imagery, or a phrase in the description) that decided the label and the rule you applied. For Acceptable items, say briefly why nothing is flagged, for example: "A standalone American flag and 'Live Free' are patriotic identity statements."
|
|
77
|
+
|
|
78
|
+
## Rules for this task
|
|
79
|
+
|
|
80
|
+
Choose the label yourself and write the rationale in your own words, directly in the rationale field. Do not use AI tools in any form, including to classify the image or to write, translate or edit the rationale.
|
|
77
81
|
`;
|
|
@@ -130,6 +130,25 @@ export const moderateProduct = generation("moderate_product", {
|
|
|
130
130
|
},
|
|
131
131
|
],
|
|
132
132
|
instruction,
|
|
133
|
+
expectedExpertBehavior: `Task: Experts review a product image, its category and its description, choose a moderation label and subcategory, and write a short rationale.
|
|
134
|
+
Process:
|
|
135
|
+
1. Look at the product image, including any text on the product, and read the category and description.
|
|
136
|
+
2. Choose the label and the subcategory by the guideline rules.
|
|
137
|
+
3. Write the rationale.
|
|
138
|
+
Outside the task page: the task does not require leaving the task page.
|
|
139
|
+
Media: one product image shown on the task page.
|
|
140
|
+
Answer fields:
|
|
141
|
+
- moderation_label: a choice (Opinionated, Offensive or Acceptable).
|
|
142
|
+
- moderation_subcategory: a choice from the subcategories of the label; none for Acceptable.
|
|
143
|
+
- moderation_rationale: one to three sentences written by the expert, naming the deciding element and the guideline rule; no paste is expected.
|
|
144
|
+
AI tools: experts may not use AI tools in any form for this task, including chatbots, AI assistants, AI browser agents, and AI translation or editing tools.
|
|
145
|
+
Expected behavior:
|
|
146
|
+
- clicks on the label and the subcategory;
|
|
147
|
+
- typing in moderation_rationale.
|
|
148
|
+
Not allowed:
|
|
149
|
+
- pasting a rationale written outside the task;
|
|
150
|
+
- using AI tools in any form, including to classify the image or to write, translate or edit the rationale;
|
|
151
|
+
- letting an AI agent fill in the task.`,
|
|
133
152
|
ui: {
|
|
134
153
|
code: `<View.Flex vertical gap={'1rem'}>
|
|
135
154
|
<View.Row gap={'1rem'} align={'stretch'}>
|
|
@@ -17,7 +17,7 @@ export const adjudicate = generation("adjudicate", {
|
|
|
17
17
|
},
|
|
18
18
|
publicName: "Senior video comparison adjudication",
|
|
19
19
|
instruction:
|
|
20
|
-
"You are resolving a disagreement between two raters. Watch both videos in full. For every metric listed as disputed, choose the video that is better on that metric alone, or tie when they are genuinely equal. Judge only the metric named; do not let overall impression carry across metrics.",
|
|
20
|
+
"You are resolving a disagreement between two raters. Watch both videos in full. For every metric listed as disputed, choose the video that is better on that metric alone, or tie when they are genuinely equal. Judge only the metric named; do not let overall impression carry across metrics. Choose every answer yourself and do not use AI tools in any form.",
|
|
21
21
|
entities: {
|
|
22
22
|
input: [
|
|
23
23
|
{
|
|
@@ -70,6 +70,23 @@ export const adjudicate = generation("adjudicate", {
|
|
|
70
70
|
targetEntity: adjudicatedMetrics,
|
|
71
71
|
},
|
|
72
72
|
],
|
|
73
|
+
expectedExpertBehavior: `Task: A senior expert resolves a disagreement between two raters: for each disputed metric, the expert picks the better of two videos or a tie.
|
|
74
|
+
Process:
|
|
75
|
+
1. Read the prompt and the list of disputed metrics.
|
|
76
|
+
2. Watch both videos in full.
|
|
77
|
+
3. For each disputed metric, pick First video, Second video or Tie, judging that metric alone.
|
|
78
|
+
Outside the task page: the task does not require leaving the task page.
|
|
79
|
+
Media: two videos on the task page; the expert watches both in full before answering.
|
|
80
|
+
Answer fields:
|
|
81
|
+
- adjudicated_metrics: one choice per disputed metric (First video, Second video or Tie); nothing is typed or pasted.
|
|
82
|
+
AI tools: experts may not use AI tools in any form for this task, including chatbots, AI assistants, AI browser agents, and AI translation or editing tools.
|
|
83
|
+
Expected behavior:
|
|
84
|
+
- both videos played before the choices are made, so the time on the task is at least the length of the longer video;
|
|
85
|
+
- clicks on the choices only.
|
|
86
|
+
Not allowed:
|
|
87
|
+
- answering without watching both videos;
|
|
88
|
+
- using AI tools in any form;
|
|
89
|
+
- letting an AI agent fill in the task.`,
|
|
73
90
|
ui: {
|
|
74
91
|
code: `<View.Flex vertical gap={'1rem'}>
|
|
75
92
|
<View.Card title={'Prompt'} variant={'info'}>
|
|
@@ -10,7 +10,7 @@ export const adjudicateOp = generation("adjudicate_op", {
|
|
|
10
10
|
},
|
|
11
11
|
publicName: "Senior overall preference adjudication",
|
|
12
12
|
instruction:
|
|
13
|
-
"Two raters disagreed on which video is better overall. Watch both in full and pick the one you would ship, or tie when neither is preferable. Overall preference is a whole-video judgment: weigh how the video reads as a finished result, not any single metric.",
|
|
13
|
+
"Two raters disagreed on which video is better overall. Watch both in full and pick the one you would ship, or tie when neither is preferable. Overall preference is a whole-video judgment: weigh how the video reads as a finished result, not any single metric. Choose the answer yourself and do not use AI tools in any form.",
|
|
14
14
|
entities: {
|
|
15
15
|
input: [
|
|
16
16
|
{
|
|
@@ -50,6 +50,23 @@ export const adjudicateOp = generation("adjudicate_op", {
|
|
|
50
50
|
targetEntity: opAdjudicatedValue,
|
|
51
51
|
},
|
|
52
52
|
],
|
|
53
|
+
expectedExpertBehavior: `Task: A senior expert resolves a disagreement between two raters on which of two videos is better overall, or a tie.
|
|
54
|
+
Process:
|
|
55
|
+
1. Read the prompt.
|
|
56
|
+
2. Watch both videos in full.
|
|
57
|
+
3. Pick First video, Second video or Tie as a judgment about the whole video.
|
|
58
|
+
Outside the task page: the task does not require leaving the task page.
|
|
59
|
+
Media: two videos on the task page; the expert watches both in full before answering.
|
|
60
|
+
Answer fields:
|
|
61
|
+
- op_adjudicated_value: a choice (First video, Second video or Tie); nothing is typed or pasted.
|
|
62
|
+
AI tools: experts may not use AI tools in any form for this task, including chatbots, AI assistants, AI browser agents, and AI translation or editing tools.
|
|
63
|
+
Expected behavior:
|
|
64
|
+
- both videos played before the choice is made, so the time on the task is at least the length of the longer video;
|
|
65
|
+
- one click on the choice.
|
|
66
|
+
Not allowed:
|
|
67
|
+
- answering without watching both videos;
|
|
68
|
+
- using AI tools in any form;
|
|
69
|
+
- letting an AI agent fill in the task.`,
|
|
53
70
|
ui: {
|
|
54
71
|
code: `<View.Flex vertical gap={'1rem'}>
|
|
55
72
|
<View.Card title={'Prompt'} variant={'info'}>
|
|
@@ -47,7 +47,24 @@ export const overallPreferencePick = quorum("overall_preference_pick", {
|
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
49
|
instruction:
|
|
50
|
-
"Watch both videos in full, then pick the one you would ship. This is a single judgment about the whole video, not a sum of its parts. Use tie only when you genuinely have no preference. Unlike the metric rating task, this one shows the pair in its original order, so your pick needs no un-shuffling downstream.",
|
|
50
|
+
"Watch both videos in full, then pick the one you would ship. This is a single judgment about the whole video, not a sum of its parts. Use tie only when you genuinely have no preference. Unlike the metric rating task, this one shows the pair in its original order, so your pick needs no un-shuffling downstream. Choose the answer yourself and do not use AI tools in any form.",
|
|
51
|
+
expectedExpertBehavior: `Task: Experts watch two videos generated from the same text prompt and pick the one they would ship, or a tie.
|
|
52
|
+
Process:
|
|
53
|
+
1. Read the prompt.
|
|
54
|
+
2. Watch both videos in full.
|
|
55
|
+
3. Pick First video, Second video or Tie as a judgment about the whole video.
|
|
56
|
+
Outside the task page: the task does not require leaving the task page.
|
|
57
|
+
Media: two videos on the task page; experts watch both in full before answering.
|
|
58
|
+
Answer fields:
|
|
59
|
+
- overall_manual_votes: a choice (First video, Second video or Tie); nothing is typed or pasted.
|
|
60
|
+
AI tools: experts may not use AI tools in any form for this task, including chatbots, AI assistants, AI browser agents, and AI translation or editing tools.
|
|
61
|
+
Expected behavior:
|
|
62
|
+
- both videos played before the choice is made, so the time on the task is at least the length of the longer video;
|
|
63
|
+
- one click on the choice.
|
|
64
|
+
Not allowed:
|
|
65
|
+
- answering without watching both videos;
|
|
66
|
+
- using AI tools in any form;
|
|
67
|
+
- letting an AI agent fill in the task.`,
|
|
51
68
|
ui: {
|
|
52
69
|
code: `<View.Flex vertical gap={'1rem'}>
|
|
53
70
|
<View.Card title={'Prompt'} variant={'info'}>
|
|
@@ -101,7 +101,24 @@ export const ratePair = quorum("rate_pair", {
|
|
|
101
101
|
},
|
|
102
102
|
],
|
|
103
103
|
instruction:
|
|
104
|
-
"Watch both videos in full before answering. For each metric, pick the video that is better on that metric alone, or tie when they are equal. The two videos are presented in random order, so left and right carry no meaning. Different metrics can have different winners; that is expected.",
|
|
104
|
+
"Watch both videos in full before answering. For each metric, pick the video that is better on that metric alone, or tie when they are equal. The two videos are presented in random order, so left and right carry no meaning. Different metrics can have different winners; that is expected. Choose every answer yourself and do not use AI tools in any form.",
|
|
105
|
+
expectedExpertBehavior: `Task: Experts compare two videos generated from the same text prompt and, for each of six metrics, pick the better video or a tie.
|
|
106
|
+
Process:
|
|
107
|
+
1. Read the prompt.
|
|
108
|
+
2. Watch both videos in full.
|
|
109
|
+
3. For each metric, pick Left, Right or Tie, judging that metric alone.
|
|
110
|
+
Outside the task page: the task does not require leaving the task page.
|
|
111
|
+
Media: two videos on the task page; experts watch both in full before answering.
|
|
112
|
+
Answer fields:
|
|
113
|
+
- image_text_alignment, motion_text_alignment, image_quality, motion_quality, subject_background_consistency, video_realism: a choice each (Left, Right or Tie); nothing is typed or pasted.
|
|
114
|
+
AI tools: experts may not use AI tools in any form for this task, including chatbots, AI assistants, AI browser agents, and AI translation or editing tools.
|
|
115
|
+
Expected behavior:
|
|
116
|
+
- both videos played before the choices are made, so the time on the task is at least the length of the longer video;
|
|
117
|
+
- clicks on the choices only.
|
|
118
|
+
Not allowed:
|
|
119
|
+
- answering without watching both videos;
|
|
120
|
+
- using AI tools in any form;
|
|
121
|
+
- letting an AI agent fill in the task.`,
|
|
105
122
|
ui: {
|
|
106
123
|
code: `<View.Flex vertical gap={'1rem'}>
|
|
107
124
|
<View.Card title={'Prompt'} variant={'info'}>
|
|
@@ -1525,6 +1525,7 @@ export interface GenerationNodeSettings {
|
|
|
1525
1525
|
entities: TaskEntities;
|
|
1526
1526
|
qualityCriteria: QualityCriteria;
|
|
1527
1527
|
instruction: string;
|
|
1528
|
+
expectedExpertBehavior: string;
|
|
1528
1529
|
ui: LabelingInterface;
|
|
1529
1530
|
qualityAssurance?: GenerationNodeSettingsQualityAssurance;
|
|
1530
1531
|
audienceAndPricing?: GenerationNodeSettingsAudienceAndPricing;
|
|
@@ -1604,6 +1605,7 @@ export interface QuorumNodeSettings {
|
|
|
1604
1605
|
qualityCriteria: QualityCriteria;
|
|
1605
1606
|
offboardingRules?: QuorumNodeSettingsOffboardingRulesItem[];
|
|
1606
1607
|
instruction: string;
|
|
1608
|
+
expectedExpertBehavior: string;
|
|
1607
1609
|
ui: LabelingInterface;
|
|
1608
1610
|
qualityAssurance?: QuorumNodeSettingsQualityAssurance;
|
|
1609
1611
|
overlap: number;
|
|
@@ -1759,6 +1761,12 @@ export type CheckReport = {
|
|
|
1759
1761
|
flag: 'redundant' | 'guideline_conflict' | 'entity_irrelevant' | 'not_in_ui' | 'not_atomic' | 'measures_input_not_signal' | 'unanchored_subjective' | 'ui_check' | 'dataset_level';
|
|
1760
1762
|
explanation: string;
|
|
1761
1763
|
})[];
|
|
1764
|
+
} | {
|
|
1765
|
+
findings: ({
|
|
1766
|
+
settingName: 'expectedExpertBehavior' | 'instruction';
|
|
1767
|
+
flag: 'section_missing' | 'not_in_ui' | 'field_not_described' | 'guideline_conflict' | 'ai_use_ambiguous' | 'paste_unspecified' | 'reveals_detection';
|
|
1768
|
+
explanation: string;
|
|
1769
|
+
})[];
|
|
1762
1770
|
} | {
|
|
1763
1771
|
tokens: {
|
|
1764
1772
|
input: number;
|
|
@@ -2007,8 +2015,8 @@ export type ListBaseModels200 = {
|
|
|
2007
2015
|
};
|
|
2008
2016
|
|
|
2009
2017
|
export type ListProjectModelsParams = {
|
|
2010
|
-
limit?: number;
|
|
2011
|
-
offset?: number;
|
|
2018
|
+
limit?: number;
|
|
2019
|
+
offset?: number;
|
|
2012
2020
|
};
|
|
2013
2021
|
|
|
2014
2022
|
export type ListProjectModels200 = {
|
|
@@ -2023,8 +2031,8 @@ export type CreateProjectModelBody = {
|
|
|
2023
2031
|
};
|
|
2024
2032
|
|
|
2025
2033
|
export type ListModelVersionsParams = {
|
|
2026
|
-
limit?: number;
|
|
2027
|
-
offset?: number;
|
|
2034
|
+
limit?: number;
|
|
2035
|
+
offset?: number;
|
|
2028
2036
|
};
|
|
2029
2037
|
|
|
2030
2038
|
export type ListModelVersions200 = {
|
|
@@ -2033,8 +2041,8 @@ export type ListModelVersions200 = {
|
|
|
2033
2041
|
};
|
|
2034
2042
|
|
|
2035
2043
|
export type ListProjectTrainingsParams = {
|
|
2036
|
-
limit?: number;
|
|
2037
|
-
offset?: number;
|
|
2044
|
+
limit?: number;
|
|
2045
|
+
offset?: number;
|
|
2038
2046
|
};
|
|
2039
2047
|
|
|
2040
2048
|
export type ListProjectTrainings200 = {
|
|
@@ -2069,8 +2077,8 @@ export type CreateTrainingRunBody = {
|
|
|
2069
2077
|
};
|
|
2070
2078
|
|
|
2071
2079
|
export type ListTrainingRunsParams = {
|
|
2072
|
-
limit?: number;
|
|
2073
|
-
offset?: number;
|
|
2080
|
+
limit?: number;
|
|
2081
|
+
offset?: number;
|
|
2074
2082
|
};
|
|
2075
2083
|
|
|
2076
2084
|
export type ListTrainingRuns200 = {
|
|
@@ -2079,17 +2087,17 @@ export type ListTrainingRuns200 = {
|
|
|
2079
2087
|
};
|
|
2080
2088
|
|
|
2081
2089
|
export type GetTrainingRunLogsParams = {
|
|
2082
|
-
cursor?: string;
|
|
2083
|
-
limit?: number;
|
|
2090
|
+
cursor?: string;
|
|
2091
|
+
limit?: number;
|
|
2084
2092
|
};
|
|
2085
2093
|
|
|
2086
2094
|
export type GetTrainingRunMetricHistoryParams = {
|
|
2087
|
-
resolution?: number;
|
|
2095
|
+
resolution?: number;
|
|
2088
2096
|
};
|
|
2089
2097
|
|
|
2090
2098
|
export type ListAudienceSpecializationsParams = {
|
|
2091
|
-
limit?: number;
|
|
2092
|
-
offset?: number;
|
|
2099
|
+
limit?: number;
|
|
2100
|
+
offset?: number;
|
|
2093
2101
|
};
|
|
2094
2102
|
|
|
2095
2103
|
export type ListAudienceSpecializations200 = {
|
|
@@ -2111,8 +2119,8 @@ export type UpdateExpertListBody = {
|
|
|
2111
2119
|
};
|
|
2112
2120
|
|
|
2113
2121
|
export type ListExpertListExpertsParams = {
|
|
2114
|
-
after?: string;
|
|
2115
|
-
limit?: number;
|
|
2122
|
+
after?: string;
|
|
2123
|
+
limit?: number;
|
|
2116
2124
|
};
|
|
2117
2125
|
|
|
2118
2126
|
export type ListExpertListExperts200ExpertsItemStatus = 'pending' | 'available' | 'unavailable' | 'not_found' | 'banned';
|
|
@@ -2135,8 +2143,8 @@ export type RemoveExpertListExpertsBody = {
|
|
|
2135
2143
|
};
|
|
2136
2144
|
|
|
2137
2145
|
export type ListExpertBanListExpertsParams = {
|
|
2138
|
-
after?: string;
|
|
2139
|
-
limit?: number;
|
|
2146
|
+
after?: string;
|
|
2147
|
+
limit?: number;
|
|
2140
2148
|
};
|
|
2141
2149
|
|
|
2142
2150
|
export type ListExpertBanListExperts200 = {
|
|
@@ -2160,10 +2168,10 @@ export type ListGenerationModels200 = {
|
|
|
2160
2168
|
};
|
|
2161
2169
|
|
|
2162
2170
|
export type ListPipelineRunReviewsParams = {
|
|
2163
|
-
limit?: number;
|
|
2164
|
-
offset?: number;
|
|
2165
|
-
status?: ListPipelineRunReviewsStatus;
|
|
2166
|
-
nodeId?: string;
|
|
2171
|
+
limit?: number;
|
|
2172
|
+
offset?: number;
|
|
2173
|
+
status?: ListPipelineRunReviewsStatus;
|
|
2174
|
+
nodeId?: string;
|
|
2167
2175
|
};
|
|
2168
2176
|
|
|
2169
2177
|
export type ListPipelineRunReviewsStatus = 'awaiting' | 'checking' | 'closed';
|
|
@@ -2177,8 +2185,8 @@ export type ListDeliveryOrders200 = {
|
|
|
2177
2185
|
};
|
|
2178
2186
|
|
|
2179
2187
|
export type ListProjectsParams = {
|
|
2180
|
-
limit?: number;
|
|
2181
|
-
offset?: number;
|
|
2188
|
+
limit?: number;
|
|
2189
|
+
offset?: number;
|
|
2182
2190
|
};
|
|
2183
2191
|
|
|
2184
2192
|
export type ListProjects200 = {
|
|
@@ -2197,8 +2205,8 @@ export type UpdateProjectBody = {
|
|
|
2197
2205
|
};
|
|
2198
2206
|
|
|
2199
2207
|
export type ListProjectPipelinesParams = {
|
|
2200
|
-
limit?: number;
|
|
2201
|
-
offset?: number;
|
|
2208
|
+
limit?: number;
|
|
2209
|
+
offset?: number;
|
|
2202
2210
|
};
|
|
2203
2211
|
|
|
2204
2212
|
export type ListProjectPipelines200 = {
|
|
@@ -2211,8 +2219,8 @@ export type UpdatePipelineBody = {
|
|
|
2211
2219
|
};
|
|
2212
2220
|
|
|
2213
2221
|
export type ListProjectDatasetsParams = {
|
|
2214
|
-
limit?: number;
|
|
2215
|
-
offset?: number;
|
|
2222
|
+
limit?: number;
|
|
2223
|
+
offset?: number;
|
|
2216
2224
|
};
|
|
2217
2225
|
|
|
2218
2226
|
export type ListProjectDatasets200 = {
|
|
@@ -2227,9 +2235,9 @@ export type CreateDatasetBody = {
|
|
|
2227
2235
|
};
|
|
2228
2236
|
|
|
2229
2237
|
export type ListDatasetFieldsParams = {
|
|
2230
|
-
limit?: number;
|
|
2231
|
-
offset?: number;
|
|
2232
|
-
names?: string;
|
|
2238
|
+
limit?: number;
|
|
2239
|
+
offset?: number;
|
|
2240
|
+
names?: string;
|
|
2233
2241
|
};
|
|
2234
2242
|
|
|
2235
2243
|
export type ListDatasetFields200 = {
|
|
@@ -2268,8 +2276,8 @@ export type AddDatasetItems200 = {
|
|
|
2268
2276
|
};
|
|
2269
2277
|
|
|
2270
2278
|
export type ListDatasetItemsParams = {
|
|
2271
|
-
limit?: number;
|
|
2272
|
-
offset?: number;
|
|
2279
|
+
limit?: number;
|
|
2280
|
+
offset?: number;
|
|
2273
2281
|
};
|
|
2274
2282
|
|
|
2275
2283
|
export type ListDatasetItems200 = {
|
|
@@ -2341,8 +2349,8 @@ export type EstimatePipelineCostBody = {
|
|
|
2341
2349
|
};
|
|
2342
2350
|
|
|
2343
2351
|
export type ListPipelineRunsParams = {
|
|
2344
|
-
limit?: number;
|
|
2345
|
-
offset?: number;
|
|
2352
|
+
limit?: number;
|
|
2353
|
+
offset?: number;
|
|
2346
2354
|
};
|
|
2347
2355
|
|
|
2348
2356
|
export type ListPipelineRuns200 = {
|
|
@@ -2382,8 +2390,8 @@ export type CreateDatasetSliceBody = {
|
|
|
2382
2390
|
};
|
|
2383
2391
|
|
|
2384
2392
|
export type ListDatasetSlicesParams = {
|
|
2385
|
-
limit?: number;
|
|
2386
|
-
offset?: number;
|
|
2393
|
+
limit?: number;
|
|
2394
|
+
offset?: number;
|
|
2387
2395
|
};
|
|
2388
2396
|
|
|
2389
2397
|
export type ListDatasetSlices200 = {
|
|
@@ -2440,8 +2448,8 @@ export type PatchPipelineNodeBody = {
|
|
|
2440
2448
|
};
|
|
2441
2449
|
|
|
2442
2450
|
export type ListProjectTokensParams = {
|
|
2443
|
-
limit?: number;
|
|
2444
|
-
offset?: number;
|
|
2451
|
+
limit?: number;
|
|
2452
|
+
offset?: number;
|
|
2445
2453
|
};
|
|
2446
2454
|
|
|
2447
2455
|
export type ListProjectTokens200 = {
|
|
@@ -2472,8 +2480,8 @@ export type CreateProjectFileUpload200 = {
|
|
|
2472
2480
|
};
|
|
2473
2481
|
|
|
2474
2482
|
export type ListPipelineRunItemsParams = {
|
|
2475
|
-
limit?: number;
|
|
2476
|
-
offset?: number;
|
|
2483
|
+
limit?: number;
|
|
2484
|
+
offset?: number;
|
|
2477
2485
|
};
|
|
2478
2486
|
|
|
2479
2487
|
export type ListPipelineRunItems200 = {
|
|
@@ -2526,8 +2534,8 @@ export type CreateBatchInferenceRunBody = {
|
|
|
2526
2534
|
};
|
|
2527
2535
|
|
|
2528
2536
|
export type ListBatchInferenceRunsParams = {
|
|
2529
|
-
limit?: number;
|
|
2530
|
-
offset?: number;
|
|
2537
|
+
limit?: number;
|
|
2538
|
+
offset?: number;
|
|
2531
2539
|
};
|
|
2532
2540
|
|
|
2533
2541
|
export type ListBatchInferenceRuns200 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toloka-platform/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Build, inspect, and operate Toloka pipeline projects as TypeScript source. The public API may change between minor versions before 1.0.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/node": "24.10.1",
|
|
59
|
-
"orval": "8.
|
|
59
|
+
"orval": "8.46.0",
|
|
60
60
|
"playwright": "1.63.0",
|
|
61
61
|
"typescript": "7.1.0-beta",
|
|
62
62
|
"vitest": "5.0.5",
|
|
@@ -78,6 +78,6 @@
|
|
|
78
78
|
"bun": ">=1.4.0"
|
|
79
79
|
},
|
|
80
80
|
"tolokaBuild": {
|
|
81
|
-
"commit": "
|
|
81
|
+
"commit": "1dac4a38aa13d373c819d205d0a4e0368b831b0d"
|
|
82
82
|
}
|
|
83
83
|
}
|
package/skills/catalog.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"testing",
|
|
12
12
|
"checks"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.
|
|
15
|
-
"digest": "
|
|
14
|
+
"version": "0.26.0",
|
|
15
|
+
"digest": "d662dcf5450084d6b166b734e7b0f8e3890fe15e9c288beda1efd02a07d954a0",
|
|
16
16
|
"files": [
|
|
17
17
|
"SKILL.md",
|
|
18
18
|
"references/human-work.md",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"bug",
|
|
34
34
|
"report"
|
|
35
35
|
],
|
|
36
|
-
"version": "0.
|
|
36
|
+
"version": "0.26.0",
|
|
37
37
|
"digest": "70f0bd2c80b32f87896aeb27c363b8a2d37f40e22424f57fe1aad142e125ad67",
|
|
38
38
|
"files": [
|
|
39
39
|
"SKILL.md",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"getting-started",
|
|
51
51
|
"agent"
|
|
52
52
|
],
|
|
53
|
-
"version": "0.
|
|
53
|
+
"version": "0.26.0",
|
|
54
54
|
"digest": "2278adeb46a792356579395fcf73c42322cb23bcd0c61e20856ccabdad6762d1",
|
|
55
55
|
"files": [
|
|
56
56
|
"SKILL.md"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"sft",
|
|
68
68
|
"models"
|
|
69
69
|
],
|
|
70
|
-
"version": "0.
|
|
70
|
+
"version": "0.26.0",
|
|
71
71
|
"digest": "3ce10dee5d3c283d8b5fdea15134a58fc738c7af2c1bb19eb5a0bf70ea0bca13",
|
|
72
72
|
"files": [
|
|
73
73
|
"SKILL.md"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"prompt",
|
|
85
85
|
"models"
|
|
86
86
|
],
|
|
87
|
-
"version": "0.
|
|
87
|
+
"version": "0.26.0",
|
|
88
88
|
"digest": "be8bce8d9cf7241ccb60d2b2a9b7cc07d7755a76e8ff8ec1b0847c49efbb3469",
|
|
89
89
|
"files": [
|
|
90
90
|
"SKILL.md"
|
|
@@ -63,7 +63,7 @@ Import authoring helpers from `@toloka-platform/sdk`.
|
|
|
63
63
|
|
|
64
64
|
Let constructors mint IDs for new declarations. Preserve `id` options generated by `toloka import`, but never invent or hand-edit raw `fp_…`, `ds.…`, `pl.…`, or `pp.…` values in authored settings. Never add a `layout` block: layout is not authored, existing nodes keep their canvas position, and the server places new nodes one column after their rightmost input and moves End to the right when they reach it.
|
|
65
65
|
|
|
66
|
-
`node_modules/@toloka-platform/sdk/examples/README.md` lists complete example projects (a single-node classification task to start from, image annotation, side-by-side rating with quorum and adjudication, video recording and upload collection) and what each demonstrates. Read the one closest to the task as a concrete authoring pattern; borrow its structure, not its task-specific choices, and design each interface for its own task with [Task UI](references/task-ui.md).
|
|
66
|
+
`node_modules/@toloka-platform/sdk/examples/README.md` lists complete example projects (a single-node classification task to start from, image annotation, side-by-side rating with quorum and adjudication, video recording and upload collection) and what each demonstrates. Read the one closest to the task as a concrete authoring pattern; borrow its structure, not its task-specific choices, and design each interface for its own task with [Task UI](references/task-ui.md). Before writing a setting, field or authoring call the example does not show, run `toloka schema <name>` (a constructor such as `quorum`, a type such as `QuorumExam`, or a testing helper such as `test.ui` or `TaskUiSession`; `toloka schema` alone lists the names) in the same step as your other reads instead of guessing its shape.
|
|
67
67
|
|
|
68
68
|
## Read the references before writing a node
|
|
69
69
|
|