@agentproto/corpus-cli 0.11.6 → 0.11.8
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/specs/resources/aip-15/draft/WORKFLOW.schema.json +1 -1
- package/dist/specs/resources/aip-34/draft/PRESENCE.schema.json +2 -2
- package/dist/specs/resources/aip-53/draft/APP.schema.json +95 -1
- package/dist/specs/resources/aip-63/draft/BROWSER.schema.json +1 -1
- package/dist/specs/resources/aip-72/draft/MEMORY.schema.json +1 -1
- package/dist/specs/resources/aip-74/draft/BILLING.schema.json +63 -1
- package/dist/specs/resources/aip-79/draft/actor.schema.json +95 -0
- package/dist/specs/resources/aip-79/draft/item.schema.json +238 -0
- package/dist/specs/resources/aip-79/draft/observation.schema.json +645 -0
- package/dist/specs/resources/aip-79/draft/pickup.schema.json +241 -0
- package/dist/specs/resources/aip-79/draft/plan.schema.json +38 -0
- package/dist/specs/resources/aip-79/draft/raw-index.schema.json +75 -0
- package/dist/specs/resources/aip-79/draft/recipe.schema.json +162 -0
- package/dist/specs/resources/aip-79/draft/report.schema.json +343 -0
- package/dist/specs/resources/aip-79/draft/run.schema.json +193 -0
- package/dist/specs/resources/aip-79/draft/sampling.schema.json +55 -0
- package/dist/specs/resources/aip-79/draft/task.schema.json +131 -0
- package/package.json +3 -3
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/docs/aip-79/report.schema.json",
|
|
4
|
+
"title": "collect.report/v1",
|
|
5
|
+
"description": "The report of a run, rebuilt from the task log.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"runId": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1
|
|
11
|
+
},
|
|
12
|
+
"startedAt": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "date-time",
|
|
15
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
16
|
+
},
|
|
17
|
+
"finishedAt": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "date-time",
|
|
20
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
21
|
+
},
|
|
22
|
+
"connectors": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"connector": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1
|
|
30
|
+
},
|
|
31
|
+
"status": {
|
|
32
|
+
"default": "ok",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"ok",
|
|
36
|
+
"partial",
|
|
37
|
+
"failed",
|
|
38
|
+
"skipped"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"skippedReason": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"reason": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"tasks": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"planned": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"minimum": 0,
|
|
53
|
+
"maximum": 9007199254740991
|
|
54
|
+
},
|
|
55
|
+
"done": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"minimum": 0,
|
|
58
|
+
"maximum": 9007199254740991
|
|
59
|
+
},
|
|
60
|
+
"failed": {
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"minimum": 0,
|
|
63
|
+
"maximum": 9007199254740991
|
|
64
|
+
},
|
|
65
|
+
"skipped": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
"minimum": 0,
|
|
68
|
+
"maximum": 9007199254740991
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"planned",
|
|
73
|
+
"done",
|
|
74
|
+
"failed",
|
|
75
|
+
"skipped"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"newItems": {
|
|
79
|
+
"type": "integer",
|
|
80
|
+
"minimum": 0,
|
|
81
|
+
"maximum": 9007199254740991
|
|
82
|
+
},
|
|
83
|
+
"observations": {
|
|
84
|
+
"type": "integer",
|
|
85
|
+
"minimum": 0,
|
|
86
|
+
"maximum": 9007199254740991
|
|
87
|
+
},
|
|
88
|
+
"duplicates": {
|
|
89
|
+
"type": "integer",
|
|
90
|
+
"minimum": 0,
|
|
91
|
+
"maximum": 9007199254740991
|
|
92
|
+
},
|
|
93
|
+
"failures": {
|
|
94
|
+
"default": {},
|
|
95
|
+
"type": "object",
|
|
96
|
+
"propertyNames": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": [
|
|
99
|
+
"blocked",
|
|
100
|
+
"empty",
|
|
101
|
+
"network",
|
|
102
|
+
"http",
|
|
103
|
+
"challenge",
|
|
104
|
+
"parse",
|
|
105
|
+
"other"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"additionalProperties": {
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"minimum": 0,
|
|
111
|
+
"maximum": 9007199254740991
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"escalations": {
|
|
115
|
+
"default": [],
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"properties": {
|
|
120
|
+
"from": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"to": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"count": {
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"exclusiveMinimum": 0,
|
|
129
|
+
"maximum": 9007199254740991
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"from",
|
|
134
|
+
"to",
|
|
135
|
+
"count"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"durationMs": {
|
|
140
|
+
"type": "number",
|
|
141
|
+
"minimum": 0
|
|
142
|
+
},
|
|
143
|
+
"sampled": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"candidates": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 0,
|
|
149
|
+
"maximum": 9007199254740991
|
|
150
|
+
},
|
|
151
|
+
"kept": {
|
|
152
|
+
"type": "integer",
|
|
153
|
+
"minimum": 0,
|
|
154
|
+
"maximum": 9007199254740991
|
|
155
|
+
},
|
|
156
|
+
"dropped": {
|
|
157
|
+
"default": {},
|
|
158
|
+
"type": "object",
|
|
159
|
+
"propertyNames": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"additionalProperties": {
|
|
163
|
+
"type": "integer",
|
|
164
|
+
"minimum": 0,
|
|
165
|
+
"maximum": 9007199254740991
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": [
|
|
170
|
+
"candidates",
|
|
171
|
+
"kept"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"coverage": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"cells": {
|
|
178
|
+
"type": "array",
|
|
179
|
+
"items": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"platform": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"format": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"language": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"subject": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"items": {
|
|
195
|
+
"type": "integer",
|
|
196
|
+
"minimum": 0,
|
|
197
|
+
"maximum": 9007199254740991
|
|
198
|
+
},
|
|
199
|
+
"withAuthorAudience": {
|
|
200
|
+
"type": "integer",
|
|
201
|
+
"minimum": 0,
|
|
202
|
+
"maximum": 9007199254740991
|
|
203
|
+
},
|
|
204
|
+
"withPrimaryMetric": {
|
|
205
|
+
"type": "integer",
|
|
206
|
+
"minimum": 0,
|
|
207
|
+
"maximum": 9007199254740991
|
|
208
|
+
},
|
|
209
|
+
"withAge": {
|
|
210
|
+
"type": "integer",
|
|
211
|
+
"minimum": 0,
|
|
212
|
+
"maximum": 9007199254740991
|
|
213
|
+
},
|
|
214
|
+
"withAuthorId": {
|
|
215
|
+
"type": "integer",
|
|
216
|
+
"minimum": 0,
|
|
217
|
+
"maximum": 9007199254740991
|
|
218
|
+
},
|
|
219
|
+
"withUniqueContent": {
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"minimum": 0,
|
|
222
|
+
"maximum": 9007199254740991
|
|
223
|
+
},
|
|
224
|
+
"eligible": {
|
|
225
|
+
"type": "integer",
|
|
226
|
+
"minimum": 0,
|
|
227
|
+
"maximum": 9007199254740991
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"required": [
|
|
231
|
+
"platform",
|
|
232
|
+
"format",
|
|
233
|
+
"language",
|
|
234
|
+
"subject",
|
|
235
|
+
"items",
|
|
236
|
+
"withAuthorAudience",
|
|
237
|
+
"withPrimaryMetric",
|
|
238
|
+
"withAge",
|
|
239
|
+
"withAuthorId",
|
|
240
|
+
"withUniqueContent",
|
|
241
|
+
"eligible"
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": [
|
|
247
|
+
"cells"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"required": [
|
|
252
|
+
"connector",
|
|
253
|
+
"tasks",
|
|
254
|
+
"newItems",
|
|
255
|
+
"observations",
|
|
256
|
+
"duplicates",
|
|
257
|
+
"durationMs"
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"coverage": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"cells": {
|
|
265
|
+
"type": "array",
|
|
266
|
+
"items": {
|
|
267
|
+
"type": "object",
|
|
268
|
+
"properties": {
|
|
269
|
+
"platform": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
"format": {
|
|
273
|
+
"type": "string"
|
|
274
|
+
},
|
|
275
|
+
"language": {
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
"subject": {
|
|
279
|
+
"type": "string"
|
|
280
|
+
},
|
|
281
|
+
"items": {
|
|
282
|
+
"type": "integer",
|
|
283
|
+
"minimum": 0,
|
|
284
|
+
"maximum": 9007199254740991
|
|
285
|
+
},
|
|
286
|
+
"withAuthorAudience": {
|
|
287
|
+
"type": "integer",
|
|
288
|
+
"minimum": 0,
|
|
289
|
+
"maximum": 9007199254740991
|
|
290
|
+
},
|
|
291
|
+
"withPrimaryMetric": {
|
|
292
|
+
"type": "integer",
|
|
293
|
+
"minimum": 0,
|
|
294
|
+
"maximum": 9007199254740991
|
|
295
|
+
},
|
|
296
|
+
"withAge": {
|
|
297
|
+
"type": "integer",
|
|
298
|
+
"minimum": 0,
|
|
299
|
+
"maximum": 9007199254740991
|
|
300
|
+
},
|
|
301
|
+
"withAuthorId": {
|
|
302
|
+
"type": "integer",
|
|
303
|
+
"minimum": 0,
|
|
304
|
+
"maximum": 9007199254740991
|
|
305
|
+
},
|
|
306
|
+
"withUniqueContent": {
|
|
307
|
+
"type": "integer",
|
|
308
|
+
"minimum": 0,
|
|
309
|
+
"maximum": 9007199254740991
|
|
310
|
+
},
|
|
311
|
+
"eligible": {
|
|
312
|
+
"type": "integer",
|
|
313
|
+
"minimum": 0,
|
|
314
|
+
"maximum": 9007199254740991
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"required": [
|
|
318
|
+
"platform",
|
|
319
|
+
"format",
|
|
320
|
+
"language",
|
|
321
|
+
"subject",
|
|
322
|
+
"items",
|
|
323
|
+
"withAuthorAudience",
|
|
324
|
+
"withPrimaryMetric",
|
|
325
|
+
"withAge",
|
|
326
|
+
"withAuthorId",
|
|
327
|
+
"withUniqueContent",
|
|
328
|
+
"eligible"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"required": [
|
|
334
|
+
"cells"
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"required": [
|
|
339
|
+
"runId",
|
|
340
|
+
"startedAt",
|
|
341
|
+
"connectors"
|
|
342
|
+
]
|
|
343
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/docs/aip-79/run.schema.json",
|
|
4
|
+
"title": "collect.run/v1",
|
|
5
|
+
"description": "The record written when a run starts: the defaulted recipe as it was, and its hash.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"runId": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1
|
|
11
|
+
},
|
|
12
|
+
"createdAt": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "date-time",
|
|
15
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
16
|
+
},
|
|
17
|
+
"recipeHash": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 64,
|
|
20
|
+
"maxLength": 64
|
|
21
|
+
},
|
|
22
|
+
"recipe": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"name": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"sources": {
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"connector": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1
|
|
37
|
+
},
|
|
38
|
+
"instance": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"queries": {
|
|
42
|
+
"default": [],
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"text": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1
|
|
50
|
+
},
|
|
51
|
+
"subject": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"text",
|
|
58
|
+
"subject"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"options": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"propertyNames": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"additionalProperties": {}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [
|
|
71
|
+
"connector"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"window": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"from": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"format": "date-time",
|
|
81
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
82
|
+
},
|
|
83
|
+
"to": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": "date-time",
|
|
86
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"sampling": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"bands": {
|
|
94
|
+
"type": "array",
|
|
95
|
+
"items": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"metric": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"enum": [
|
|
101
|
+
"views",
|
|
102
|
+
"likes",
|
|
103
|
+
"reposts",
|
|
104
|
+
"replies",
|
|
105
|
+
"bookmarks",
|
|
106
|
+
"points",
|
|
107
|
+
"comments",
|
|
108
|
+
"reactions",
|
|
109
|
+
"score",
|
|
110
|
+
"rating",
|
|
111
|
+
"helpfulVotes"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"min": {
|
|
115
|
+
"type": "number"
|
|
116
|
+
},
|
|
117
|
+
"max": {
|
|
118
|
+
"type": "number"
|
|
119
|
+
},
|
|
120
|
+
"quota": {
|
|
121
|
+
"type": "integer",
|
|
122
|
+
"minimum": 0,
|
|
123
|
+
"maximum": 9007199254740991
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"keepMissingMetric": {
|
|
129
|
+
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"perDomainCap": {
|
|
132
|
+
"type": "integer",
|
|
133
|
+
"exclusiveMinimum": 0,
|
|
134
|
+
"maximum": 9007199254740991
|
|
135
|
+
},
|
|
136
|
+
"seed": {
|
|
137
|
+
"type": "integer",
|
|
138
|
+
"minimum": -9007199254740991,
|
|
139
|
+
"maximum": 9007199254740991
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"caps": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"perConnector": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"exclusiveMinimum": 0,
|
|
149
|
+
"maximum": 9007199254740991
|
|
150
|
+
},
|
|
151
|
+
"total": {
|
|
152
|
+
"type": "integer",
|
|
153
|
+
"exclusiveMinimum": 0,
|
|
154
|
+
"maximum": 9007199254740991
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"workers": {
|
|
159
|
+
"default": 8,
|
|
160
|
+
"type": "integer",
|
|
161
|
+
"exclusiveMinimum": 0,
|
|
162
|
+
"maximum": 9007199254740991
|
|
163
|
+
},
|
|
164
|
+
"lookahead": {
|
|
165
|
+
"type": "integer",
|
|
166
|
+
"exclusiveMinimum": 0,
|
|
167
|
+
"maximum": 9007199254740991
|
|
168
|
+
},
|
|
169
|
+
"sinks": {
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"required": [
|
|
177
|
+
"sources"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"connectorModules": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"required": [
|
|
188
|
+
"runId",
|
|
189
|
+
"createdAt",
|
|
190
|
+
"recipeHash",
|
|
191
|
+
"recipe"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/docs/aip-79/sampling.schema.json",
|
|
4
|
+
"title": "collect.sampling/v1",
|
|
5
|
+
"description": "One sampling decision of a run: a candidate seen and whether it was kept.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"candidate": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1
|
|
11
|
+
},
|
|
12
|
+
"decision": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"kept",
|
|
16
|
+
"dropped"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"rule": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"band": {
|
|
23
|
+
"type": "integer",
|
|
24
|
+
"minimum": 0,
|
|
25
|
+
"maximum": 9007199254740991
|
|
26
|
+
},
|
|
27
|
+
"url": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"domain": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"seed": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"minimum": -9007199254740991,
|
|
36
|
+
"maximum": 9007199254740991
|
|
37
|
+
},
|
|
38
|
+
"connector": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"taskId": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"at": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": "date-time",
|
|
47
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": [
|
|
51
|
+
"candidate",
|
|
52
|
+
"decision",
|
|
53
|
+
"at"
|
|
54
|
+
]
|
|
55
|
+
}
|