@digipair/skill-dsp 0.28.14 → 0.29.3
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/index.cjs.js +5 -5
- package/index.esm.js +5 -5
- package/package.json +1 -1
- package/schema.en.json +463 -0
package/index.cjs.js
CHANGED
|
@@ -23525,14 +23525,14 @@ function indent(str, spaces) {
|
|
|
23525
23525
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23526
23526
|
// match is required
|
|
23527
23527
|
if (!match) {
|
|
23528
|
-
return i = i1,
|
|
23528
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23529
23529
|
v: nextMatch1
|
|
23530
23530
|
};
|
|
23531
23531
|
}
|
|
23532
23532
|
var token = match.token, offset = match.offset;
|
|
23533
23533
|
i1 += offset;
|
|
23534
23534
|
if (token === " ") {
|
|
23535
|
-
return i = i1,
|
|
23535
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23536
23536
|
}
|
|
23537
23537
|
tokens1 = _to_consumable_array$6(tokens1).concat([
|
|
23538
23538
|
token
|
|
@@ -23551,7 +23551,7 @@ function indent(str, spaces) {
|
|
|
23551
23551
|
if (contextKeys.some(function(el) {
|
|
23552
23552
|
return el.startsWith(name);
|
|
23553
23553
|
})) {
|
|
23554
|
-
return i = i1,
|
|
23554
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23555
23555
|
}
|
|
23556
23556
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23557
23557
|
return el === name;
|
|
@@ -23570,9 +23570,9 @@ function indent(str, spaces) {
|
|
|
23570
23570
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23571
23571
|
return el.startsWith(name);
|
|
23572
23572
|
})) {
|
|
23573
|
-
return i = i1,
|
|
23573
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23574
23574
|
}
|
|
23575
|
-
return i = i1,
|
|
23575
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23576
23576
|
v: nextMatch1
|
|
23577
23577
|
};
|
|
23578
23578
|
};
|
package/index.esm.js
CHANGED
|
@@ -23499,14 +23499,14 @@ function indent(str, spaces) {
|
|
|
23499
23499
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23500
23500
|
// match is required
|
|
23501
23501
|
if (!match) {
|
|
23502
|
-
return
|
|
23502
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23503
23503
|
v: nextMatch1
|
|
23504
23504
|
};
|
|
23505
23505
|
}
|
|
23506
23506
|
var token = match.token, offset = match.offset;
|
|
23507
23507
|
i1 += offset;
|
|
23508
23508
|
if (token === " ") {
|
|
23509
|
-
return
|
|
23509
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23510
23510
|
}
|
|
23511
23511
|
tokens1 = _to_consumable_array$6(tokens1).concat([
|
|
23512
23512
|
token
|
|
@@ -23525,7 +23525,7 @@ function indent(str, spaces) {
|
|
|
23525
23525
|
if (contextKeys.some(function(el) {
|
|
23526
23526
|
return el.startsWith(name);
|
|
23527
23527
|
})) {
|
|
23528
|
-
return
|
|
23528
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23529
23529
|
}
|
|
23530
23530
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23531
23531
|
return el === name;
|
|
@@ -23544,9 +23544,9 @@ function indent(str, spaces) {
|
|
|
23544
23544
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23545
23545
|
return el.startsWith(name);
|
|
23546
23546
|
})) {
|
|
23547
|
-
return
|
|
23547
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23548
23548
|
}
|
|
23549
|
-
return
|
|
23549
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23550
23550
|
v: nextMatch1
|
|
23551
23551
|
};
|
|
23552
23552
|
};
|
package/package.json
CHANGED
package/schema.en.json
ADDED
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "@digipair/skill-dsp",
|
|
5
|
+
"summary": "LLM via Stanford DSP",
|
|
6
|
+
"description": "The skill allows managing communication with the LLM following the Stanford DSP.",
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"x-icon": "🚀"
|
|
9
|
+
},
|
|
10
|
+
"paths": {
|
|
11
|
+
"/model": {
|
|
12
|
+
"post": {
|
|
13
|
+
"tags": ["service"],
|
|
14
|
+
"summary": "Generic Model",
|
|
15
|
+
"parameters": [
|
|
16
|
+
{
|
|
17
|
+
"name": "name",
|
|
18
|
+
"summary": "Model Name",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "Name of the LLM model to use for system summary",
|
|
21
|
+
"schema": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "options",
|
|
27
|
+
"summary": "Options",
|
|
28
|
+
"required": false,
|
|
29
|
+
"description": "LLM model options",
|
|
30
|
+
"schema": {
|
|
31
|
+
"type": "object"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"x-events": []
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"/modelOpenAi": {
|
|
39
|
+
"post": {
|
|
40
|
+
"tags": ["service"],
|
|
41
|
+
"summary": "OpenAI Model",
|
|
42
|
+
"parameters": [
|
|
43
|
+
{
|
|
44
|
+
"name": "apiKey",
|
|
45
|
+
"summary": "API Key",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "OpenAI API Key",
|
|
48
|
+
"schema": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "apiURL",
|
|
54
|
+
"summary": "Server Address",
|
|
55
|
+
"required": false,
|
|
56
|
+
"description": "OpenAI server address",
|
|
57
|
+
"schema": {
|
|
58
|
+
"type": "object"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "config",
|
|
63
|
+
"summary": "Configuration",
|
|
64
|
+
"required": false,
|
|
65
|
+
"description": "OpenAI model configuration",
|
|
66
|
+
"schema": {
|
|
67
|
+
"type": "object"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "options",
|
|
72
|
+
"summary": "Options",
|
|
73
|
+
"required": false,
|
|
74
|
+
"description": "OpenAI model options",
|
|
75
|
+
"schema": {
|
|
76
|
+
"type": "object"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"x-events": []
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"/modelAzureOpenAi": {
|
|
84
|
+
"post": {
|
|
85
|
+
"tags": ["service"],
|
|
86
|
+
"summary": "Azure OpenAI Model",
|
|
87
|
+
"parameters": [
|
|
88
|
+
{
|
|
89
|
+
"name": "apiKey",
|
|
90
|
+
"summary": "API Key",
|
|
91
|
+
"required": false,
|
|
92
|
+
"description": "Azure OpenAI API Key",
|
|
93
|
+
"schema": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "resourceName",
|
|
99
|
+
"summary": "Resource Name",
|
|
100
|
+
"required": false,
|
|
101
|
+
"description": "Azure OpenAI resource name",
|
|
102
|
+
"schema": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "deploymentName",
|
|
108
|
+
"summary": "Deployment Name",
|
|
109
|
+
"required": false,
|
|
110
|
+
"description": "Azure OpenAI deployment name",
|
|
111
|
+
"schema": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "version",
|
|
117
|
+
"summary": "Version",
|
|
118
|
+
"required": false,
|
|
119
|
+
"description": "OpenAI API version",
|
|
120
|
+
"schema": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "config",
|
|
126
|
+
"summary": "Configuration",
|
|
127
|
+
"required": false,
|
|
128
|
+
"description": "OpenAI model configuration",
|
|
129
|
+
"schema": {
|
|
130
|
+
"type": "object"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "options",
|
|
135
|
+
"summary": "Options",
|
|
136
|
+
"required": false,
|
|
137
|
+
"description": "OpenAI model options",
|
|
138
|
+
"schema": {
|
|
139
|
+
"type": "object"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"x-events": []
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"/modelOllama": {
|
|
147
|
+
"post": {
|
|
148
|
+
"tags": ["service"],
|
|
149
|
+
"summary": "Ollama Model",
|
|
150
|
+
"parameters": [
|
|
151
|
+
{
|
|
152
|
+
"name": "model",
|
|
153
|
+
"summary": "Model",
|
|
154
|
+
"required": true,
|
|
155
|
+
"description": "Name of the Ollama model to use for generation",
|
|
156
|
+
"schema": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "url",
|
|
162
|
+
"summary": "Server Address",
|
|
163
|
+
"required": false,
|
|
164
|
+
"description": "Address of the Ollama server to use for generation",
|
|
165
|
+
"schema": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "apiKey",
|
|
171
|
+
"summary": "API Key",
|
|
172
|
+
"required": false,
|
|
173
|
+
"description": "Ollama API Key",
|
|
174
|
+
"schema": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "config",
|
|
180
|
+
"summary": "Configuration",
|
|
181
|
+
"required": false,
|
|
182
|
+
"description": "Ollama model configuration",
|
|
183
|
+
"schema": {
|
|
184
|
+
"type": "object"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "options",
|
|
189
|
+
"summary": "Options",
|
|
190
|
+
"required": false,
|
|
191
|
+
"description": "Ollama model options",
|
|
192
|
+
"schema": {
|
|
193
|
+
"type": "object"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"x-events": []
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"/generate": {
|
|
201
|
+
"post": {
|
|
202
|
+
"tags": ["service"],
|
|
203
|
+
"summary": "DSP Generation",
|
|
204
|
+
"parameters": [
|
|
205
|
+
{
|
|
206
|
+
"name": "model",
|
|
207
|
+
"summary": "Model",
|
|
208
|
+
"required": false,
|
|
209
|
+
"description": "LLM model to use for generation",
|
|
210
|
+
"schema": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "signature",
|
|
219
|
+
"summary": "Signature",
|
|
220
|
+
"required": true,
|
|
221
|
+
"description": "Signature of the data to extract",
|
|
222
|
+
"schema": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "input",
|
|
228
|
+
"summary": "Data to Process",
|
|
229
|
+
"required": true,
|
|
230
|
+
"description": "Input data to process",
|
|
231
|
+
"schema": {
|
|
232
|
+
"type": "object"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "functions",
|
|
237
|
+
"summary": "DSP Functions",
|
|
238
|
+
"required": false,
|
|
239
|
+
"description": "Functions usable for generation",
|
|
240
|
+
"schema": {
|
|
241
|
+
"type": "array",
|
|
242
|
+
"items": {
|
|
243
|
+
"$ref": "#/components/schemas/Function"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"x-events": []
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"/chainOfThought": {
|
|
252
|
+
"post": {
|
|
253
|
+
"tags": ["service"],
|
|
254
|
+
"summary": "DSP Chain of Thought",
|
|
255
|
+
"parameters": [
|
|
256
|
+
{
|
|
257
|
+
"name": "model",
|
|
258
|
+
"summary": "Model",
|
|
259
|
+
"required": false,
|
|
260
|
+
"description": "LLM model to use for generation",
|
|
261
|
+
"schema": {
|
|
262
|
+
"type": "array",
|
|
263
|
+
"items": {
|
|
264
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "signature",
|
|
270
|
+
"summary": "Signature",
|
|
271
|
+
"required": true,
|
|
272
|
+
"description": "Signature of the data to extract",
|
|
273
|
+
"schema": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "input",
|
|
279
|
+
"summary": "Data to Process",
|
|
280
|
+
"required": true,
|
|
281
|
+
"description": "Input data to process",
|
|
282
|
+
"schema": {
|
|
283
|
+
"type": "object"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "functions",
|
|
288
|
+
"summary": "DSP Functions",
|
|
289
|
+
"required": false,
|
|
290
|
+
"description": "Functions usable for the chain of thought",
|
|
291
|
+
"schema": {
|
|
292
|
+
"type": "array",
|
|
293
|
+
"items": {
|
|
294
|
+
"$ref": "#/components/schemas/Function"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"x-events": []
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"/react": {
|
|
303
|
+
"post": {
|
|
304
|
+
"tags": ["service"],
|
|
305
|
+
"summary": "ReAct DSP",
|
|
306
|
+
"parameters": [
|
|
307
|
+
{
|
|
308
|
+
"name": "model",
|
|
309
|
+
"summary": "Model",
|
|
310
|
+
"required": false,
|
|
311
|
+
"description": "LLM model to use for generation",
|
|
312
|
+
"schema": {
|
|
313
|
+
"type": "array",
|
|
314
|
+
"items": {
|
|
315
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "signature",
|
|
321
|
+
"summary": "Signature",
|
|
322
|
+
"required": true,
|
|
323
|
+
"description": "Signature of the data to extract",
|
|
324
|
+
"schema": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "input",
|
|
330
|
+
"summary": "Data to Process",
|
|
331
|
+
"required": true,
|
|
332
|
+
"description": "Input data to process",
|
|
333
|
+
"schema": {
|
|
334
|
+
"type": "object"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "functions",
|
|
339
|
+
"summary": "DSP Functions",
|
|
340
|
+
"required": false,
|
|
341
|
+
"description": "Functions usable for generation",
|
|
342
|
+
"schema": {
|
|
343
|
+
"type": "array",
|
|
344
|
+
"items": {
|
|
345
|
+
"$ref": "#/components/schemas/Function"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"x-events": []
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"/agent": {
|
|
354
|
+
"post": {
|
|
355
|
+
"tags": ["service"],
|
|
356
|
+
"summary": "DSP Agent",
|
|
357
|
+
"parameters": [
|
|
358
|
+
{
|
|
359
|
+
"name": "model",
|
|
360
|
+
"summary": "Model",
|
|
361
|
+
"required": false,
|
|
362
|
+
"description": "LLM model to use for generation",
|
|
363
|
+
"schema": {
|
|
364
|
+
"type": "array",
|
|
365
|
+
"items": {
|
|
366
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "name",
|
|
372
|
+
"summary": "Name",
|
|
373
|
+
"required": true,
|
|
374
|
+
"description": "Name of the agent",
|
|
375
|
+
"schema": {
|
|
376
|
+
"type": "string"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "description",
|
|
381
|
+
"summary": "Description",
|
|
382
|
+
"required": true,
|
|
383
|
+
"description": "Description of the agent",
|
|
384
|
+
"schema": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "signature",
|
|
390
|
+
"summary": "Signature",
|
|
391
|
+
"required": true,
|
|
392
|
+
"description": "Signature of the data to extract",
|
|
393
|
+
"schema": {
|
|
394
|
+
"type": "string"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "input",
|
|
399
|
+
"summary": "Data to Process",
|
|
400
|
+
"required": false,
|
|
401
|
+
"description": "Input data to process",
|
|
402
|
+
"schema": {
|
|
403
|
+
"type": "object"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "functions",
|
|
408
|
+
"summary": "DSP Functions",
|
|
409
|
+
"required": false,
|
|
410
|
+
"description": "Functions usable for generation",
|
|
411
|
+
"schema": {
|
|
412
|
+
"type": "array",
|
|
413
|
+
"items": {
|
|
414
|
+
"$ref": "#/components/schemas/Function"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "agents",
|
|
420
|
+
"summary": "DSP Agents",
|
|
421
|
+
"required": false,
|
|
422
|
+
"description": "Other agents usable by the agent",
|
|
423
|
+
"schema": {
|
|
424
|
+
"type": "array",
|
|
425
|
+
"items": {
|
|
426
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"x-events": []
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"components": {
|
|
436
|
+
"schemas": {
|
|
437
|
+
"Function": {
|
|
438
|
+
"tags": ["service"],
|
|
439
|
+
"summary": "DSP Function",
|
|
440
|
+
"type": "object",
|
|
441
|
+
"properties": {
|
|
442
|
+
"name": {
|
|
443
|
+
"type": "string"
|
|
444
|
+
},
|
|
445
|
+
"description": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
},
|
|
448
|
+
"parameters": {
|
|
449
|
+
"type": "object"
|
|
450
|
+
},
|
|
451
|
+
"func": {
|
|
452
|
+
"type": "array",
|
|
453
|
+
"items": {
|
|
454
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"required": ["name", "description", "parameters", "func"]
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"x-scene-blocks": {}
|
|
463
|
+
}
|