sil-openclaw 0.6.0 → 0.8.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/CHANGELOG.md +44 -0
- package/EXAMPLES.md +93 -0
- package/README.md +58 -120
- package/SECURITY.md +12 -9
- package/assets/banner-dark.svg +15 -0
- package/assets/banner.svg +15 -0
- package/dist/gateway/screen.js +174 -0
- package/dist/index.js +5 -9
- package/dist/lib/answers.js +59 -0
- package/dist/lib/screen-log.js +13 -0
- package/dist/lib/shopping-call.js +27 -28
- package/dist/lib/sil-client.js +49 -66
- package/dist/lib/tool-result.js +1 -1
- package/dist/tools/catalog.js +113 -272
- package/dist/tools/identity.js +79 -88
- package/openclaw.plugin.json +12 -7
- package/package.json +4 -2
- package/schema/PROVENANCE.md +7 -4
- package/schema/shopping-brief-read-request.schema.json +2 -1
- package/schema/shopping-brief-read-response.schema.json +98 -50
- package/schema/shopping-brief-write-request.schema.json +322 -0
- package/schema/{shopping-brief-create-response.schema.json → shopping-brief-write-response.schema.json} +3 -3
- package/schema/shopping-content-request.schema.json +12 -31
- package/schema/shopping-content-response.schema.json +14 -95
- package/schema/shopping-domain-get-request.schema.json +24 -1
- package/schema/shopping-domain-get-response.schema.json +23 -421
- package/schema/shopping-domain-search-request.schema.json +3 -3
- package/schema/shopping-domain-search-response.schema.json +3 -56
- package/schema/shopping-offers-request.schema.json +14 -9
- package/schema/shopping-offers-response.schema.json +368 -91
- package/schema/shopping-product-get-request.schema.json +4 -3
- package/schema/shopping-product-get-response.schema.json +347 -46
- package/schema/shopping-search-request.schema.json +53 -40
- package/schema/shopping-search-response.schema.json +408 -116
- package/schema/shopping-seller-get-request.schema.json +13 -1
- package/schema/shopping-seller-get-response.schema.json +594 -225
- package/schema/shopping-user-forget-request.schema.json +43 -0
- package/schema/shopping-user-forget-response.schema.json +74 -0
- package/schema/shopping-user-read-request.schema.json +37 -0
- package/schema/shopping-user-read-response.schema.json +372 -0
- package/schema/shopping-user-remember-request.schema.json +341 -0
- package/schema/shopping-user-remember-response.schema.json +66 -0
- package/schema/sil-whoami-request.schema.json +8 -0
- package/schema/sil-whoami-response.schema.json +99 -0
- package/sil-shopping/SKILL.md +149 -208
- package/dist/gateway/search-results.js +0 -99
- package/dist/lib/search-results-log.js +0 -23
- package/dist/lib/search-results-store.js +0 -116
- package/schema/shopping-brief-create-request.schema.json +0 -98
- package/schema/shopping-brief-edit-request.schema.json +0 -125
- package/schema/shopping-brief-edit-response.schema.json +0 -24
- package/schema/shopping-profile-edit-request.schema.json +0 -97
- package/schema/shopping-profile-edit-response.schema.json +0 -17
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-brief-write-request.schema.json",
|
|
4
|
+
"title": "sil shopping_brief_write — request",
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"title",
|
|
10
|
+
"narrative"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"title": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 128,
|
|
17
|
+
"description": "Opens a brief: names the buy so the buyer picks it out later."
|
|
18
|
+
},
|
|
19
|
+
"narrative": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"maxLength": 2000,
|
|
23
|
+
"description": "Writes what a good buy is for this buyer, in their terms, and what would make it a bad one."
|
|
24
|
+
},
|
|
25
|
+
"domain": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
28
|
+
"maxLength": 255,
|
|
29
|
+
"description": "Names where `specs` and `remove` sit: a place, or `seller` for seller specs."
|
|
30
|
+
},
|
|
31
|
+
"specs": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": [
|
|
38
|
+
"spec",
|
|
39
|
+
"op",
|
|
40
|
+
"value"
|
|
41
|
+
],
|
|
42
|
+
"properties": {
|
|
43
|
+
"spec": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1,
|
|
46
|
+
"maxLength": 64,
|
|
47
|
+
"description": "Sends a spec the domain read listed, unchanged: a part’s by its path (`boiler.boilerVolume`)."
|
|
48
|
+
},
|
|
49
|
+
"op": {
|
|
50
|
+
"anyOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "string",
|
|
53
|
+
"const": "eq"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "string",
|
|
57
|
+
"const": "neq"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "string",
|
|
61
|
+
"const": "gte"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "string",
|
|
65
|
+
"const": "lte"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "string",
|
|
69
|
+
"const": "in"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "nin"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"description": "Sends the operator the domain read listed for this spec."
|
|
77
|
+
},
|
|
78
|
+
"value": {
|
|
79
|
+
"description": "Sends the desired value, typed by the spec's type."
|
|
80
|
+
},
|
|
81
|
+
"reason": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"minLength": 1,
|
|
84
|
+
"maxLength": 256,
|
|
85
|
+
"description": "Quotes the buyer's own words behind the spec, in English — translated, never a paraphrase, never a sentence they did not say; a spec derived from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"additionalProperties": false
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "object",
|
|
92
|
+
"required": [
|
|
93
|
+
"spec",
|
|
94
|
+
"range"
|
|
95
|
+
],
|
|
96
|
+
"properties": {
|
|
97
|
+
"spec": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"minLength": 1,
|
|
100
|
+
"maxLength": 64,
|
|
101
|
+
"description": "Names a money spec: `price`, or a seller’s money spec."
|
|
102
|
+
},
|
|
103
|
+
"range": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"required": [
|
|
106
|
+
"currency"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"min": {
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"minimum": 0,
|
|
112
|
+
"maximum": 9007199254740991,
|
|
113
|
+
"description": "The low end, in the minor unit."
|
|
114
|
+
},
|
|
115
|
+
"max": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 0,
|
|
118
|
+
"maximum": 9007199254740991,
|
|
119
|
+
"description": "The high end, in the minor unit."
|
|
120
|
+
},
|
|
121
|
+
"currency": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"pattern": "^[A-Z]{3}$",
|
|
124
|
+
"minLength": 3,
|
|
125
|
+
"maxLength": 3,
|
|
126
|
+
"description": "Both ends in this currency; sil converts nothing."
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"description": "Holds the money spec’s range, one or both ends."
|
|
131
|
+
},
|
|
132
|
+
"reason": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1,
|
|
135
|
+
"maxLength": 256,
|
|
136
|
+
"description": "Quotes the buyer's own words behind the spec, in English — translated, never a paraphrase, never a sentence they did not say; a spec derived from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"additionalProperties": false
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"maxItems": 32,
|
|
144
|
+
"description": "Replaces every spec on the specs they name under that domain; a money spec is its range."
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"additionalProperties": false
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "object",
|
|
151
|
+
"required": [
|
|
152
|
+
"id"
|
|
153
|
+
],
|
|
154
|
+
"properties": {
|
|
155
|
+
"id": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"minLength": 1,
|
|
158
|
+
"maxLength": 256,
|
|
159
|
+
"description": "Edits this brief; one that is not the buyer’s answers `not_found`."
|
|
160
|
+
},
|
|
161
|
+
"title": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"minLength": 1,
|
|
164
|
+
"maxLength": 128,
|
|
165
|
+
"description": "Renames it."
|
|
166
|
+
},
|
|
167
|
+
"narrative": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"minLength": 1,
|
|
170
|
+
"maxLength": 2000,
|
|
171
|
+
"description": "Replaces the whole narrative."
|
|
172
|
+
},
|
|
173
|
+
"domain": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
176
|
+
"maxLength": 255,
|
|
177
|
+
"description": "Names where `specs` and `remove` sit: a place, or `seller` for seller specs."
|
|
178
|
+
},
|
|
179
|
+
"specs": {
|
|
180
|
+
"type": "array",
|
|
181
|
+
"items": {
|
|
182
|
+
"anyOf": [
|
|
183
|
+
{
|
|
184
|
+
"type": "object",
|
|
185
|
+
"required": [
|
|
186
|
+
"spec",
|
|
187
|
+
"op",
|
|
188
|
+
"value"
|
|
189
|
+
],
|
|
190
|
+
"properties": {
|
|
191
|
+
"spec": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"minLength": 1,
|
|
194
|
+
"maxLength": 64,
|
|
195
|
+
"description": "Sends a spec the domain read listed, unchanged: a part’s by its path (`boiler.boilerVolume`)."
|
|
196
|
+
},
|
|
197
|
+
"op": {
|
|
198
|
+
"anyOf": [
|
|
199
|
+
{
|
|
200
|
+
"type": "string",
|
|
201
|
+
"const": "eq"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "string",
|
|
205
|
+
"const": "neq"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "string",
|
|
209
|
+
"const": "gte"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"type": "string",
|
|
213
|
+
"const": "lte"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "string",
|
|
217
|
+
"const": "in"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "string",
|
|
221
|
+
"const": "nin"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"description": "Sends the operator the domain read listed for this spec."
|
|
225
|
+
},
|
|
226
|
+
"value": {
|
|
227
|
+
"description": "Sends the desired value, typed by the spec's type."
|
|
228
|
+
},
|
|
229
|
+
"reason": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"minLength": 1,
|
|
232
|
+
"maxLength": 256,
|
|
233
|
+
"description": "Quotes the buyer's own words behind the spec, in English — translated, never a paraphrase, never a sentence they did not say; a spec derived from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"additionalProperties": false
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"type": "object",
|
|
240
|
+
"required": [
|
|
241
|
+
"spec",
|
|
242
|
+
"range"
|
|
243
|
+
],
|
|
244
|
+
"properties": {
|
|
245
|
+
"spec": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"minLength": 1,
|
|
248
|
+
"maxLength": 64,
|
|
249
|
+
"description": "Names a money spec: `price`, or a seller’s money spec."
|
|
250
|
+
},
|
|
251
|
+
"range": {
|
|
252
|
+
"type": "object",
|
|
253
|
+
"required": [
|
|
254
|
+
"currency"
|
|
255
|
+
],
|
|
256
|
+
"properties": {
|
|
257
|
+
"min": {
|
|
258
|
+
"type": "integer",
|
|
259
|
+
"minimum": 0,
|
|
260
|
+
"maximum": 9007199254740991,
|
|
261
|
+
"description": "The low end, in the minor unit."
|
|
262
|
+
},
|
|
263
|
+
"max": {
|
|
264
|
+
"type": "integer",
|
|
265
|
+
"minimum": 0,
|
|
266
|
+
"maximum": 9007199254740991,
|
|
267
|
+
"description": "The high end, in the minor unit."
|
|
268
|
+
},
|
|
269
|
+
"currency": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"pattern": "^[A-Z]{3}$",
|
|
272
|
+
"minLength": 3,
|
|
273
|
+
"maxLength": 3,
|
|
274
|
+
"description": "Both ends in this currency; sil converts nothing."
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"additionalProperties": false,
|
|
278
|
+
"description": "Holds the money spec’s range, one or both ends."
|
|
279
|
+
},
|
|
280
|
+
"reason": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"minLength": 1,
|
|
283
|
+
"maxLength": 256,
|
|
284
|
+
"description": "Quotes the buyer's own words behind the spec, in English — translated, never a paraphrase, never a sentence they did not say; a spec derived from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"additionalProperties": false
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
"maxItems": 32,
|
|
292
|
+
"description": "Replaces every spec on the specs they name under that domain; a money spec is its range."
|
|
293
|
+
},
|
|
294
|
+
"remove": {
|
|
295
|
+
"type": "array",
|
|
296
|
+
"items": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"minLength": 1,
|
|
299
|
+
"maxLength": 64,
|
|
300
|
+
"description": "A spec whose rows go."
|
|
301
|
+
},
|
|
302
|
+
"maxItems": 32,
|
|
303
|
+
"description": "Drops the rows on these specs."
|
|
304
|
+
},
|
|
305
|
+
"decision": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"minLength": 1,
|
|
308
|
+
"maxLength": 512,
|
|
309
|
+
"description": "Logs in one sentence what the buyer changed and why."
|
|
310
|
+
},
|
|
311
|
+
"status": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"const": "closed",
|
|
314
|
+
"description": "Closes it: the buy is over."
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"additionalProperties": false
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"type": "object",
|
|
321
|
+
"description": "Money is in the minor unit: €130 is 13000."
|
|
322
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schemas.sil.com/shopping-brief-
|
|
4
|
-
"title": "sil
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-brief-write-response.schema.json",
|
|
4
|
+
"title": "sil shopping_brief_write — response",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"type": "string",
|
|
18
18
|
"minLength": 1,
|
|
19
19
|
"maxLength": 256,
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "Names the brief; a later search or offers call may name it so sil ties them."
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"additionalProperties": false
|
|
@@ -5,31 +5,20 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"path",
|
|
8
|
-
"
|
|
8
|
+
"about"
|
|
9
9
|
],
|
|
10
10
|
"properties": {
|
|
11
11
|
"path": {
|
|
12
12
|
"type": "string",
|
|
13
13
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
14
14
|
"maxLength": 255,
|
|
15
|
-
"description": "Sends the
|
|
15
|
+
"description": "Sends the place whose line is read: the place itself, every kind it is, what sits beneath it and every place above it."
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"about": {
|
|
18
18
|
"type": "string",
|
|
19
19
|
"minLength": 1,
|
|
20
20
|
"maxLength": 200,
|
|
21
|
-
"description": "Sends the
|
|
22
|
-
},
|
|
23
|
-
"document": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"minLength": 1,
|
|
26
|
-
"maxLength": 256,
|
|
27
|
-
"description": "Reads one document's passages in order instead of grepping: any `id` a passage or a domain's map carried, from part `from` on; past its last part, none."
|
|
28
|
-
},
|
|
29
|
-
"from": {
|
|
30
|
-
"type": "integer",
|
|
31
|
-
"minimum": 1,
|
|
32
|
-
"description": "Starts the read of `document` at this part. Default 1."
|
|
21
|
+
"description": "Sends the words to find, as the buyer or a shop says them; a \"quoted phrase\" is one term. Passages holding every word come first."
|
|
33
22
|
},
|
|
34
23
|
"kinds": {
|
|
35
24
|
"type": "array",
|
|
@@ -62,30 +51,22 @@
|
|
|
62
51
|
{
|
|
63
52
|
"type": "string",
|
|
64
53
|
"const": "news"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "string",
|
|
57
|
+
"const": "discussion"
|
|
65
58
|
}
|
|
66
|
-
]
|
|
59
|
+
],
|
|
60
|
+
"description": "A kind of document."
|
|
67
61
|
},
|
|
68
62
|
"minItems": 1,
|
|
69
63
|
"uniqueItems": true,
|
|
70
|
-
"description": "
|
|
71
|
-
},
|
|
72
|
-
"min_passages": {
|
|
73
|
-
"type": "integer",
|
|
74
|
-
"minimum": 0,
|
|
75
|
-
"maximum": 20,
|
|
76
|
-
"description": "Fills up to this many from the nearest documents when too few match, marked by an empty `matched`. Default 1."
|
|
77
|
-
},
|
|
78
|
-
"max_passages": {
|
|
79
|
-
"type": "integer",
|
|
80
|
-
"minimum": 1,
|
|
81
|
-
"maximum": 20,
|
|
82
|
-
"description": "Caps the passages answered. Default 8."
|
|
64
|
+
"description": "Reads only these kinds; absent, every kind."
|
|
83
65
|
},
|
|
84
66
|
"max_tokens": {
|
|
85
67
|
"type": "integer",
|
|
86
68
|
"minimum": 200,
|
|
87
|
-
"
|
|
88
|
-
"description": "Caps what the passages cost, a token being four characters of a passage as sent; the last passage is cut to fit and marked `truncated`. Default 2000."
|
|
69
|
+
"description": "Caps what the passages cost, a token being four characters; whole passages are answered while they fit. At most 2300, a larger ask served at that. Default 2000."
|
|
89
70
|
}
|
|
90
71
|
},
|
|
91
72
|
"additionalProperties": false
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
|
-
"tokens",
|
|
9
|
-
"total",
|
|
10
8
|
"passages"
|
|
11
9
|
],
|
|
12
10
|
"properties": {
|
|
@@ -15,37 +13,16 @@
|
|
|
15
13
|
"const": "ok",
|
|
16
14
|
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
17
15
|
},
|
|
18
|
-
"tokens": {
|
|
19
|
-
"type": "integer",
|
|
20
|
-
"minimum": 0,
|
|
21
|
-
"description": "Reads what the passages cost, in tokens."
|
|
22
|
-
},
|
|
23
|
-
"total": {
|
|
24
|
-
"type": "integer",
|
|
25
|
-
"minimum": 0,
|
|
26
|
-
"description": "Reads how many passages hold a term before the cut — on the line, or in the document read: more than came back means a narrower grep, `kinds` or more `max_passages`."
|
|
27
|
-
},
|
|
28
16
|
"passages": {
|
|
29
17
|
"type": "array",
|
|
30
18
|
"items": {
|
|
31
19
|
"type": "object",
|
|
32
20
|
"required": [
|
|
33
|
-
"id",
|
|
34
21
|
"kind",
|
|
35
22
|
"title",
|
|
36
|
-
"from",
|
|
37
|
-
"role",
|
|
38
|
-
"written",
|
|
39
|
-
"part",
|
|
40
|
-
"of",
|
|
41
|
-
"matched",
|
|
42
23
|
"text"
|
|
43
24
|
],
|
|
44
25
|
"properties": {
|
|
45
|
-
"id": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"description": "Names the document, to cite it as sil's."
|
|
48
|
-
},
|
|
49
26
|
"kind": {
|
|
50
27
|
"anyOf": [
|
|
51
28
|
{
|
|
@@ -75,97 +52,39 @@
|
|
|
75
52
|
{
|
|
76
53
|
"type": "string",
|
|
77
54
|
"const": "news"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "discussion"
|
|
78
59
|
}
|
|
79
60
|
],
|
|
80
|
-
"description": "Reads what the document is
|
|
61
|
+
"description": "Reads what the document is."
|
|
81
62
|
},
|
|
82
63
|
"title": {
|
|
83
64
|
"type": "string",
|
|
84
|
-
"description": "
|
|
65
|
+
"description": "Cites the document by it."
|
|
85
66
|
},
|
|
86
67
|
"author": {
|
|
87
68
|
"type": "string",
|
|
88
|
-
"description": "
|
|
69
|
+
"description": "Cites who wrote it; absent, sil did."
|
|
89
70
|
},
|
|
90
|
-
"
|
|
71
|
+
"text": {
|
|
91
72
|
"type": "string",
|
|
92
|
-
"description": "Reads
|
|
73
|
+
"description": "Reads the passage."
|
|
93
74
|
},
|
|
94
|
-
"
|
|
75
|
+
"url": {
|
|
95
76
|
"type": "string",
|
|
96
|
-
"
|
|
97
|
-
"maxLength": 255,
|
|
98
|
-
"description": "Reads the node the document is written for."
|
|
99
|
-
},
|
|
100
|
-
"role": {
|
|
101
|
-
"anyOf": [
|
|
102
|
-
{
|
|
103
|
-
"type": "string",
|
|
104
|
-
"const": "root"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"type": "string",
|
|
108
|
-
"const": "top"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"type": "string",
|
|
112
|
-
"const": "domain"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"type": "string",
|
|
116
|
-
"const": "shelf"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"type": "string",
|
|
120
|
-
"const": "kind"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "string",
|
|
124
|
-
"const": "leaf"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"description": "Reads what that node is: the root, a top, a domain, a shelf, a kind or a leaf."
|
|
77
|
+
"description": "Hands the buyer the source."
|
|
128
78
|
},
|
|
129
|
-
"
|
|
79
|
+
"publish_date": {
|
|
130
80
|
"type": "string",
|
|
131
81
|
"format": "date",
|
|
132
|
-
"description": "
|
|
133
|
-
},
|
|
134
|
-
"heading": {
|
|
135
|
-
"type": "string",
|
|
136
|
-
"description": "Reads the heading the passage sits under; absent, it has none."
|
|
137
|
-
},
|
|
138
|
-
"part": {
|
|
139
|
-
"type": "integer",
|
|
140
|
-
"minimum": 1,
|
|
141
|
-
"description": "Reads where the passage sits in its document, to read on from it."
|
|
142
|
-
},
|
|
143
|
-
"of": {
|
|
144
|
-
"type": "integer",
|
|
145
|
-
"minimum": 1,
|
|
146
|
-
"description": "Reads how many parts its document has."
|
|
147
|
-
},
|
|
148
|
-
"matched": {
|
|
149
|
-
"type": "array",
|
|
150
|
-
"items": {
|
|
151
|
-
"type": "string"
|
|
152
|
-
},
|
|
153
|
-
"description": "Reads which of the asked terms the passage holds. Empty: none — it fills the minimum from the nearest documents and answers no word of the ask."
|
|
154
|
-
},
|
|
155
|
-
"text": {
|
|
156
|
-
"type": "string",
|
|
157
|
-
"description": "Reads the passage whole, or cut where `truncated`."
|
|
158
|
-
},
|
|
159
|
-
"truncated": {
|
|
160
|
-
"type": "boolean",
|
|
161
|
-
"const": true,
|
|
162
|
-
"description": "Reads that the budget cut the passage short here."
|
|
82
|
+
"description": "Says when it was published, every time it is cited."
|
|
163
83
|
}
|
|
164
84
|
},
|
|
165
85
|
"additionalProperties": false
|
|
166
86
|
},
|
|
167
|
-
"
|
|
168
|
-
"description": "Reads sil's passages for the terms, best first: every term, then more terms, then the densest, the nearer node breaking a tie. Empty: nothing sil holds here answers; say so, never the open web."
|
|
87
|
+
"description": "Reads sil’s passages, best first. Empty: say so, never the open web."
|
|
169
88
|
}
|
|
170
89
|
},
|
|
171
90
|
"additionalProperties": false
|
|
@@ -11,7 +11,30 @@
|
|
|
11
11
|
"type": "string",
|
|
12
12
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
13
13
|
"maxLength": 255,
|
|
14
|
-
"description": "Sends
|
|
14
|
+
"description": "Sends the leaf `shopping_domain_search` answered, or the kind above its leaves. A shelf, domain or top answers `not_a_leaf` naming leaves; an area sil does not carry yet `not_carried`."
|
|
15
|
+
},
|
|
16
|
+
"query": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 200,
|
|
20
|
+
"description": "Sends what the buyer wants, in English — \"quiet, small counter, about €100\" — so the specs it reaches come first."
|
|
21
|
+
},
|
|
22
|
+
"spec_keywords": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 64,
|
|
28
|
+
"description": "A word for a spec: \"noise\", \"depth\", \"burr\"."
|
|
29
|
+
},
|
|
30
|
+
"minItems": 1,
|
|
31
|
+
"maxItems": 32,
|
|
32
|
+
"description": "Sends the specs the agent is looking for, in a word each; the specs they name rank first."
|
|
33
|
+
},
|
|
34
|
+
"page": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"minimum": 2,
|
|
37
|
+
"description": "Reads on: the `next_page` the last answer gave."
|
|
15
38
|
}
|
|
16
39
|
},
|
|
17
40
|
"additionalProperties": false
|