@digipair/skill-dsp 0.95.7 → 0.97.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/index.esm.js +5 -5
- package/package.json +1 -1
- package/schema.fr.json +821 -430
- package/schema.json +821 -430
package/schema.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"/model": {
|
|
12
12
|
"post": {
|
|
13
|
-
"tags": [
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
14
16
|
"summary": "Generic Model",
|
|
15
17
|
"parameters": [
|
|
16
18
|
{
|
|
@@ -32,453 +34,842 @@
|
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
],
|
|
35
|
-
"x-events": []
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
"name": "supportFor",
|
|
81
|
-
"summary": "Support for",
|
|
82
|
-
"required": false,
|
|
83
|
-
"description": "OpenAI model support for specific features",
|
|
84
|
-
"schema": {
|
|
85
|
-
"type": "object"
|
|
37
|
+
"x-events": [],
|
|
38
|
+
"responses": {
|
|
39
|
+
"200": {
|
|
40
|
+
"description": "Successful response",
|
|
41
|
+
"content": {
|
|
42
|
+
"application/json": {
|
|
43
|
+
"schema": {
|
|
44
|
+
"$ref": "#/components/schemas/AxAIModelInstance"
|
|
45
|
+
}
|
|
46
|
+
"name": "gpt-4o-mini",
|
|
47
|
+
"config": {},
|
|
48
|
+
"options": {}
|
|
49
|
+
}
|
|
86
50
|
}
|
|
87
51
|
}
|
|
88
|
-
|
|
89
|
-
"x-events": []
|
|
52
|
+
}
|
|
90
53
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"name": "resourceName",
|
|
108
|
-
"summary": "Resource Name",
|
|
109
|
-
"required": false,
|
|
110
|
-
"description": "Azure OpenAI resource name",
|
|
111
|
-
"schema": {
|
|
112
|
-
"type": "string"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "deploymentName",
|
|
117
|
-
"summary": "Deployment Name",
|
|
118
|
-
"required": false,
|
|
119
|
-
"description": "Azure OpenAI deployment name",
|
|
120
|
-
"schema": {
|
|
121
|
-
"type": "string"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "version",
|
|
126
|
-
"summary": "Version",
|
|
127
|
-
"required": false,
|
|
128
|
-
"description": "OpenAI API version",
|
|
129
|
-
"schema": {
|
|
130
|
-
"type": "string"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "config",
|
|
135
|
-
"summary": "Configuration",
|
|
136
|
-
"required": false,
|
|
137
|
-
"description": "OpenAI model configuration",
|
|
138
|
-
"schema": {
|
|
139
|
-
"type": "object"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"name": "options",
|
|
144
|
-
"summary": "Options",
|
|
145
|
-
"required": false,
|
|
146
|
-
"description": "OpenAI model options",
|
|
147
|
-
"schema": {
|
|
148
|
-
"type": "object"
|
|
149
|
-
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"/modelOpenAI": {
|
|
57
|
+
"post": {
|
|
58
|
+
"tags": [
|
|
59
|
+
"service"
|
|
60
|
+
],
|
|
61
|
+
"summary": "OpenAI Model",
|
|
62
|
+
"parameters": [
|
|
63
|
+
{
|
|
64
|
+
"name": "apiKey",
|
|
65
|
+
"summary": "API Key",
|
|
66
|
+
"required": false,
|
|
67
|
+
"description": "OpenAI API Key",
|
|
68
|
+
"schema": {
|
|
69
|
+
"type": "string"
|
|
150
70
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"parameters": [
|
|
160
|
-
{
|
|
161
|
-
"name": "model",
|
|
162
|
-
"summary": "Model",
|
|
163
|
-
"required": true,
|
|
164
|
-
"description": "Name of the Ollama model to use for generation",
|
|
165
|
-
"schema": {
|
|
166
|
-
"type": "string"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"name": "url",
|
|
171
|
-
"summary": "Server Address",
|
|
172
|
-
"required": false,
|
|
173
|
-
"description": "Address of the Ollama server to use for generation",
|
|
174
|
-
"schema": {
|
|
175
|
-
"type": "string"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"name": "apiKey",
|
|
180
|
-
"summary": "API Key",
|
|
181
|
-
"required": false,
|
|
182
|
-
"description": "Ollama API Key",
|
|
183
|
-
"schema": {
|
|
184
|
-
"type": "string"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"name": "config",
|
|
189
|
-
"summary": "Configuration",
|
|
190
|
-
"required": false,
|
|
191
|
-
"description": "Ollama model configuration",
|
|
192
|
-
"schema": {
|
|
193
|
-
"type": "object"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"name": "options",
|
|
198
|
-
"summary": "Options",
|
|
199
|
-
"required": false,
|
|
200
|
-
"description": "Ollama model options",
|
|
201
|
-
"schema": {
|
|
202
|
-
"type": "object"
|
|
203
|
-
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "apiURL",
|
|
74
|
+
"summary": "Server Address",
|
|
75
|
+
"required": false,
|
|
76
|
+
"description": "OpenAI server address",
|
|
77
|
+
"schema": {
|
|
78
|
+
"type": "object"
|
|
204
79
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "config",
|
|
83
|
+
"summary": "Configuration",
|
|
84
|
+
"required": false,
|
|
85
|
+
"description": "OpenAI model configuration",
|
|
86
|
+
"schema": {
|
|
87
|
+
"type": "object"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "options",
|
|
92
|
+
"summary": "Options",
|
|
93
|
+
"required": false,
|
|
94
|
+
"description": "OpenAI model options",
|
|
95
|
+
"schema": {
|
|
96
|
+
"type": "object"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "supportFor",
|
|
101
|
+
"summary": "Support for",
|
|
102
|
+
"required": false,
|
|
103
|
+
"description": "OpenAI model support for specific features",
|
|
104
|
+
"schema": {
|
|
105
|
+
"type": "object"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"x-events": [],
|
|
110
|
+
"responses": {
|
|
111
|
+
"200": {
|
|
112
|
+
"description": "Successful response",
|
|
113
|
+
"content": {
|
|
114
|
+
"application/json": {
|
|
115
|
+
"schema": {
|
|
116
|
+
"$ref": "#/components/schemas/AxAIOpenAIModelInstance"
|
|
235
117
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
{
|
|
248
|
-
"name": "input",
|
|
249
|
-
"summary": "Data to Process",
|
|
250
|
-
"required": true,
|
|
251
|
-
"description": "Input data to process",
|
|
252
|
-
"schema": {
|
|
253
|
-
"type": "object"
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"name": "functions",
|
|
258
|
-
"summary": "DSP Functions",
|
|
259
|
-
"required": false,
|
|
260
|
-
"description": "Functions usable for generation",
|
|
261
|
-
"schema": {
|
|
262
|
-
"type": "array",
|
|
263
|
-
"items": {
|
|
264
|
-
"$ref": "#/components/schemas/Function"
|
|
118
|
+
"apiKey": "sk-...",
|
|
119
|
+
"apiURL": "https://api.openai.com/v1",
|
|
120
|
+
"modelInfo": {},
|
|
121
|
+
"config": {
|
|
122
|
+
"model": "gpt-4o-mini"
|
|
123
|
+
},
|
|
124
|
+
"supportFor": {
|
|
125
|
+
"functions": true,
|
|
126
|
+
"streaming": true,
|
|
127
|
+
"hasThinkingBudget": false,
|
|
128
|
+
"hasShowThoughts": false
|
|
265
129
|
}
|
|
266
130
|
}
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"name": "options",
|
|
270
|
-
"summary": "Options",
|
|
271
|
-
"required": false,
|
|
272
|
-
"description": "Generation options",
|
|
273
|
-
"schema": {
|
|
274
|
-
"type": "object"
|
|
275
|
-
}
|
|
276
131
|
}
|
|
277
|
-
|
|
278
|
-
"x-events": []
|
|
132
|
+
}
|
|
279
133
|
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"/modelAzureOpenAi": {
|
|
138
|
+
"post": {
|
|
139
|
+
"tags": [
|
|
140
|
+
"service"
|
|
141
|
+
],
|
|
142
|
+
"summary": "Azure OpenAI Model",
|
|
143
|
+
"parameters": [
|
|
144
|
+
{
|
|
145
|
+
"name": "apiKey",
|
|
146
|
+
"summary": "API Key",
|
|
147
|
+
"required": false,
|
|
148
|
+
"description": "Azure OpenAI API Key",
|
|
149
|
+
"schema": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "resourceName",
|
|
155
|
+
"summary": "Resource Name",
|
|
156
|
+
"required": false,
|
|
157
|
+
"description": "Azure OpenAI resource name",
|
|
158
|
+
"schema": {
|
|
159
|
+
"type": "string"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "deploymentName",
|
|
164
|
+
"summary": "Deployment Name",
|
|
165
|
+
"required": false,
|
|
166
|
+
"description": "Azure OpenAI deployment name",
|
|
167
|
+
"schema": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "version",
|
|
173
|
+
"summary": "Version",
|
|
174
|
+
"required": false,
|
|
175
|
+
"description": "OpenAI API version",
|
|
176
|
+
"schema": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "config",
|
|
182
|
+
"summary": "Configuration",
|
|
183
|
+
"required": false,
|
|
184
|
+
"description": "OpenAI model configuration",
|
|
185
|
+
"schema": {
|
|
186
|
+
"type": "object"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "options",
|
|
191
|
+
"summary": "Options",
|
|
192
|
+
"required": false,
|
|
193
|
+
"description": "OpenAI model options",
|
|
194
|
+
"schema": {
|
|
195
|
+
"type": "object"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"x-events": [],
|
|
200
|
+
"responses": {
|
|
201
|
+
"200": {
|
|
202
|
+
"description": "Successful response",
|
|
203
|
+
"content": {
|
|
204
|
+
"application/json": {
|
|
205
|
+
"schema": {
|
|
206
|
+
"$ref": "#/components/schemas/AxAIAzureOpenAIModelInstance"
|
|
207
|
+
}
|
|
208
|
+
"apiKey": "your-azure-api-key",
|
|
209
|
+
"resourceName": "your-azure-resource",
|
|
210
|
+
"deploymentName": "your-deployment",
|
|
211
|
+
"version": "2023-05-15",
|
|
212
|
+
"config": {},
|
|
213
|
+
"options": {}
|
|
348
214
|
}
|
|
349
|
-
|
|
350
|
-
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"/modelOllama": {
|
|
222
|
+
"post": {
|
|
223
|
+
"tags": [
|
|
224
|
+
"service"
|
|
225
|
+
],
|
|
226
|
+
"summary": "Ollama Model",
|
|
227
|
+
"parameters": [
|
|
228
|
+
{
|
|
229
|
+
"name": "model",
|
|
230
|
+
"summary": "Model",
|
|
231
|
+
"required": true,
|
|
232
|
+
"description": "Name of the Ollama model to use for generation",
|
|
233
|
+
"schema": {
|
|
234
|
+
"type": "string"
|
|
351
235
|
}
|
|
352
236
|
},
|
|
353
|
-
|
|
354
|
-
"
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"name": "signature",
|
|
402
|
-
"summary": "Signature",
|
|
403
|
-
"required": true,
|
|
404
|
-
"description": "Signature of the data to extract",
|
|
405
|
-
"schema": {
|
|
406
|
-
"type": "string"
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"name": "input",
|
|
411
|
-
"summary": "Data to Process",
|
|
412
|
-
"required": false,
|
|
413
|
-
"description": "Input data to process",
|
|
414
|
-
"schema": {
|
|
415
|
-
"type": "object"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"name": "functions",
|
|
420
|
-
"summary": "DSP Functions",
|
|
421
|
-
"required": false,
|
|
422
|
-
"description": "Functions usable for generation",
|
|
423
|
-
"schema": {
|
|
424
|
-
"type": "array",
|
|
425
|
-
"items": {
|
|
426
|
-
"$ref": "#/components/schemas/Function"
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"name": "agents",
|
|
432
|
-
"summary": "DSP Agents",
|
|
433
|
-
"required": false,
|
|
434
|
-
"description": "Other agents usable by the agent",
|
|
435
|
-
"schema": {
|
|
436
|
-
"type": "array",
|
|
437
|
-
"items": {
|
|
438
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"name": "options",
|
|
444
|
-
"summary": "Options",
|
|
445
|
-
"required": false,
|
|
446
|
-
"description": "Generation options",
|
|
447
|
-
"schema": {
|
|
448
|
-
"type": "object"
|
|
449
|
-
}
|
|
237
|
+
{
|
|
238
|
+
"name": "url",
|
|
239
|
+
"summary": "Server Address",
|
|
240
|
+
"required": false,
|
|
241
|
+
"description": "Address of the Ollama server to use for generation",
|
|
242
|
+
"schema": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "apiKey",
|
|
248
|
+
"summary": "API Key",
|
|
249
|
+
"required": false,
|
|
250
|
+
"description": "Ollama API Key",
|
|
251
|
+
"schema": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "config",
|
|
257
|
+
"summary": "Configuration",
|
|
258
|
+
"required": false,
|
|
259
|
+
"description": "Ollama model configuration",
|
|
260
|
+
"schema": {
|
|
261
|
+
"type": "object"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "options",
|
|
266
|
+
"summary": "Options",
|
|
267
|
+
"required": false,
|
|
268
|
+
"description": "Ollama model options",
|
|
269
|
+
"schema": {
|
|
270
|
+
"type": "object"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"x-events": [],
|
|
275
|
+
"responses": {
|
|
276
|
+
"200": {
|
|
277
|
+
"description": "Successful response",
|
|
278
|
+
"content": {
|
|
279
|
+
"application/json": {
|
|
280
|
+
"schema": {
|
|
281
|
+
"$ref": "#/components/schemas/AxAIOllamaModelInstance"
|
|
450
282
|
}
|
|
451
|
-
|
|
452
|
-
|
|
283
|
+
"model": "llama2",
|
|
284
|
+
"url": "http://localhost:11434/v1",
|
|
285
|
+
"apiKey": null,
|
|
286
|
+
"config": {},
|
|
287
|
+
"options": {}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"/generate": {
|
|
296
|
+
"post": {
|
|
297
|
+
"tags": [
|
|
298
|
+
"service"
|
|
299
|
+
],
|
|
300
|
+
"summary": "DSP Generation",
|
|
301
|
+
"parameters": [
|
|
302
|
+
{
|
|
303
|
+
"name": "model",
|
|
304
|
+
"summary": "Model",
|
|
305
|
+
"required": false,
|
|
306
|
+
"description": "LLM model to use for generation",
|
|
307
|
+
"schema": {
|
|
308
|
+
"type": "array",
|
|
309
|
+
"items": {
|
|
310
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
453
311
|
}
|
|
454
312
|
}
|
|
455
313
|
},
|
|
456
|
-
|
|
457
|
-
"
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
},
|
|
466
|
-
"description": {
|
|
467
|
-
"type": "string"
|
|
468
|
-
},
|
|
469
|
-
"parameters": {
|
|
470
|
-
"type": "object"
|
|
471
|
-
},
|
|
472
|
-
"func": {
|
|
473
|
-
"type": "array",
|
|
474
|
-
"items": {
|
|
475
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
"required": ["name", "description", "parameters", "func"]
|
|
314
|
+
{
|
|
315
|
+
"name": "streaming",
|
|
316
|
+
"summary": "Streaming",
|
|
317
|
+
"required": false,
|
|
318
|
+
"description": "Streaming event for the generation",
|
|
319
|
+
"schema": {
|
|
320
|
+
"type": "array",
|
|
321
|
+
"items": {
|
|
322
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
480
323
|
}
|
|
481
324
|
}
|
|
482
325
|
},
|
|
483
|
-
|
|
326
|
+
{
|
|
327
|
+
"name": "signature",
|
|
328
|
+
"summary": "Signature",
|
|
329
|
+
"required": true,
|
|
330
|
+
"description": "Signature of the data to extract",
|
|
331
|
+
"schema": {
|
|
332
|
+
"type": "string"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "input",
|
|
337
|
+
"summary": "Data to Process",
|
|
338
|
+
"required": true,
|
|
339
|
+
"description": "Input data to process",
|
|
340
|
+
"schema": {
|
|
341
|
+
"type": "object"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "functions",
|
|
346
|
+
"summary": "DSP Functions",
|
|
347
|
+
"required": false,
|
|
348
|
+
"description": "Functions usable for generation",
|
|
349
|
+
"schema": {
|
|
350
|
+
"type": "array",
|
|
351
|
+
"items": {
|
|
352
|
+
"$ref": "#/components/schemas/Function"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "options",
|
|
358
|
+
"summary": "Options",
|
|
359
|
+
"required": false,
|
|
360
|
+
"description": "Generation options",
|
|
361
|
+
"schema": {
|
|
362
|
+
"type": "object"
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"x-events": [],
|
|
367
|
+
"responses": {
|
|
368
|
+
"200": {
|
|
369
|
+
"description": "Successful response",
|
|
370
|
+
"content": {
|
|
371
|
+
"application/json": {
|
|
372
|
+
"schema": {
|
|
373
|
+
"$ref": "#/components/schemas/GenerationResult"
|
|
374
|
+
}
|
|
375
|
+
"text": "Generated response text",
|
|
376
|
+
"data": {
|
|
377
|
+
"field1": "extracted value 1",
|
|
378
|
+
"field2": "extracted value 2"
|
|
379
|
+
},
|
|
380
|
+
"functions": [],
|
|
381
|
+
"reasoning": "Step-by-step reasoning process"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"/chainOfThought": {
|
|
390
|
+
"post": {
|
|
391
|
+
"tags": [
|
|
392
|
+
"service"
|
|
393
|
+
],
|
|
394
|
+
"summary": "DSP Chain of Thought",
|
|
395
|
+
"parameters": [
|
|
396
|
+
{
|
|
397
|
+
"name": "model",
|
|
398
|
+
"summary": "Model",
|
|
399
|
+
"required": false,
|
|
400
|
+
"description": "LLM model to use for generation",
|
|
401
|
+
"schema": {
|
|
402
|
+
"type": "array",
|
|
403
|
+
"items": {
|
|
404
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"name": "streaming",
|
|
410
|
+
"summary": "Streaming",
|
|
411
|
+
"required": false,
|
|
412
|
+
"description": "Streaming event for the generation",
|
|
413
|
+
"schema": {
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "signature",
|
|
422
|
+
"summary": "Signature",
|
|
423
|
+
"required": true,
|
|
424
|
+
"description": "Signature of the data to extract",
|
|
425
|
+
"schema": {
|
|
426
|
+
"type": "string"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "input",
|
|
431
|
+
"summary": "Data to Process",
|
|
432
|
+
"required": true,
|
|
433
|
+
"description": "Input data to process",
|
|
434
|
+
"schema": {
|
|
435
|
+
"type": "object"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "functions",
|
|
440
|
+
"summary": "DSP Functions",
|
|
441
|
+
"required": false,
|
|
442
|
+
"description": "Functions usable for the chain of thought",
|
|
443
|
+
"schema": {
|
|
444
|
+
"type": "array",
|
|
445
|
+
"items": {
|
|
446
|
+
"$ref": "#/components/schemas/Function"
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "options",
|
|
452
|
+
"summary": "Options",
|
|
453
|
+
"required": false,
|
|
454
|
+
"description": "Generation options",
|
|
455
|
+
"schema": {
|
|
456
|
+
"type": "object"
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"x-events": [],
|
|
461
|
+
"responses": {
|
|
462
|
+
"200": {
|
|
463
|
+
"description": "Successful response",
|
|
464
|
+
"content": {
|
|
465
|
+
"application/json": {
|
|
466
|
+
"schema": {
|
|
467
|
+
"$ref": "#/components/schemas/ChainOfThoughtResult"
|
|
468
|
+
}
|
|
469
|
+
"text": "Chain of thought response",
|
|
470
|
+
"data": {
|
|
471
|
+
"reasoning": "Detailed reasoning steps",
|
|
472
|
+
"conclusion": "Final conclusion"
|
|
473
|
+
},
|
|
474
|
+
"thoughts": [
|
|
475
|
+
"First thought",
|
|
476
|
+
"Second thought",
|
|
477
|
+
"Final thought"
|
|
478
|
+
],
|
|
479
|
+
"functions": []
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"/agent": {
|
|
488
|
+
"post": {
|
|
489
|
+
"tags": [
|
|
490
|
+
"service"
|
|
491
|
+
],
|
|
492
|
+
"summary": "DSP Agent",
|
|
493
|
+
"parameters": [
|
|
494
|
+
{
|
|
495
|
+
"name": "model",
|
|
496
|
+
"summary": "Model",
|
|
497
|
+
"required": false,
|
|
498
|
+
"description": "LLM model to use for generation",
|
|
499
|
+
"schema": {
|
|
500
|
+
"type": "array",
|
|
501
|
+
"items": {
|
|
502
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "streaming",
|
|
508
|
+
"summary": "Streaming",
|
|
509
|
+
"required": false,
|
|
510
|
+
"description": "Streaming event for the generation",
|
|
511
|
+
"schema": {
|
|
512
|
+
"type": "array",
|
|
513
|
+
"items": {
|
|
514
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "name",
|
|
520
|
+
"summary": "Name",
|
|
521
|
+
"required": true,
|
|
522
|
+
"description": "Name of the agent",
|
|
523
|
+
"schema": {
|
|
524
|
+
"type": "string"
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"name": "description",
|
|
529
|
+
"summary": "Description",
|
|
530
|
+
"required": true,
|
|
531
|
+
"description": "Description of the agent",
|
|
532
|
+
"schema": {
|
|
533
|
+
"type": "string"
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "signature",
|
|
538
|
+
"summary": "Signature",
|
|
539
|
+
"required": true,
|
|
540
|
+
"description": "Signature of the data to extract",
|
|
541
|
+
"schema": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "input",
|
|
547
|
+
"summary": "Data to Process",
|
|
548
|
+
"required": false,
|
|
549
|
+
"description": "Input data to process",
|
|
550
|
+
"schema": {
|
|
551
|
+
"type": "object"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"name": "functions",
|
|
556
|
+
"summary": "DSP Functions",
|
|
557
|
+
"required": false,
|
|
558
|
+
"description": "Functions usable for generation",
|
|
559
|
+
"schema": {
|
|
560
|
+
"type": "array",
|
|
561
|
+
"items": {
|
|
562
|
+
"$ref": "#/components/schemas/Function"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "agents",
|
|
568
|
+
"summary": "DSP Agents",
|
|
569
|
+
"required": false,
|
|
570
|
+
"description": "Other agents usable by the agent",
|
|
571
|
+
"schema": {
|
|
572
|
+
"type": "array",
|
|
573
|
+
"items": {
|
|
574
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "options",
|
|
580
|
+
"summary": "Options",
|
|
581
|
+
"required": false,
|
|
582
|
+
"description": "Generation options",
|
|
583
|
+
"schema": {
|
|
584
|
+
"type": "object"
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"x-events": [],
|
|
589
|
+
"responses": {
|
|
590
|
+
"200": {
|
|
591
|
+
"description": "Successful response",
|
|
592
|
+
"content": {
|
|
593
|
+
"application/json": {
|
|
594
|
+
"schema": {
|
|
595
|
+
"oneOf": [
|
|
596
|
+
{
|
|
597
|
+
"$ref": "#/components/schemas/AgentResult"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"$ref": "#/components/schemas/AxAgentInstance"
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
"text": "Agent response",
|
|
605
|
+
"data": {
|
|
606
|
+
"task_result": "Completed task successfully",
|
|
607
|
+
"actions_taken": [
|
|
608
|
+
"action1",
|
|
609
|
+
"action2"
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
"agents_used": [
|
|
613
|
+
"helper_agent_1"
|
|
614
|
+
],
|
|
615
|
+
"functions": []
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
"components": {
|
|
625
|
+
"schemas": {
|
|
626
|
+
"Function": {
|
|
627
|
+
"tags": [
|
|
628
|
+
"service"
|
|
629
|
+
],
|
|
630
|
+
"summary": "DSP Function",
|
|
631
|
+
"type": "object",
|
|
632
|
+
"properties": {
|
|
633
|
+
"name": {
|
|
634
|
+
"type": "string"
|
|
635
|
+
},
|
|
636
|
+
"description": {
|
|
637
|
+
"type": "string"
|
|
638
|
+
},
|
|
639
|
+
"parameters": {
|
|
640
|
+
"type": "object"
|
|
641
|
+
},
|
|
642
|
+
"func": {
|
|
643
|
+
"type": "array",
|
|
644
|
+
"items": {
|
|
645
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"required": [
|
|
650
|
+
"name",
|
|
651
|
+
"description",
|
|
652
|
+
"parameters",
|
|
653
|
+
"func"
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
"AxAIModelInstance": {
|
|
657
|
+
"type": "object",
|
|
658
|
+
"description": "Generic AxAI model instance",
|
|
659
|
+
"properties": {
|
|
660
|
+
"name": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"description": "Model name"
|
|
663
|
+
},
|
|
664
|
+
"config": {
|
|
665
|
+
"type": "object",
|
|
666
|
+
"description": "Model configuration"
|
|
667
|
+
},
|
|
668
|
+
"options": {
|
|
669
|
+
"type": "object",
|
|
670
|
+
"description": "Model options"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"AxAIOpenAIModelInstance": {
|
|
675
|
+
"type": "object",
|
|
676
|
+
"description": "OpenAI model instance",
|
|
677
|
+
"properties": {
|
|
678
|
+
"apiKey": {
|
|
679
|
+
"type": "string",
|
|
680
|
+
"description": "OpenAI API key"
|
|
681
|
+
},
|
|
682
|
+
"apiURL": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"description": "OpenAI API URL"
|
|
685
|
+
},
|
|
686
|
+
"modelInfo": {
|
|
687
|
+
"type": "object",
|
|
688
|
+
"description": "Model information"
|
|
689
|
+
},
|
|
690
|
+
"config": {
|
|
691
|
+
"type": "object",
|
|
692
|
+
"description": "Model configuration"
|
|
693
|
+
},
|
|
694
|
+
"supportFor": {
|
|
695
|
+
"type": "object",
|
|
696
|
+
"description": "Supported features"
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
"AxAIAzureOpenAIModelInstance": {
|
|
701
|
+
"type": "object",
|
|
702
|
+
"description": "Azure OpenAI model instance",
|
|
703
|
+
"properties": {
|
|
704
|
+
"apiKey": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"description": "Azure OpenAI API key"
|
|
707
|
+
},
|
|
708
|
+
"resourceName": {
|
|
709
|
+
"type": "string",
|
|
710
|
+
"description": "Azure resource name"
|
|
711
|
+
},
|
|
712
|
+
"deploymentName": {
|
|
713
|
+
"type": "string",
|
|
714
|
+
"description": "Deployment name"
|
|
715
|
+
},
|
|
716
|
+
"version": {
|
|
717
|
+
"type": "string",
|
|
718
|
+
"description": "API version"
|
|
719
|
+
},
|
|
720
|
+
"config": {
|
|
721
|
+
"type": "object",
|
|
722
|
+
"description": "Model configuration"
|
|
723
|
+
},
|
|
724
|
+
"options": {
|
|
725
|
+
"type": "object",
|
|
726
|
+
"description": "Model options"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"AxAIOllamaModelInstance": {
|
|
731
|
+
"type": "object",
|
|
732
|
+
"description": "Ollama model instance",
|
|
733
|
+
"properties": {
|
|
734
|
+
"model": {
|
|
735
|
+
"type": "string",
|
|
736
|
+
"description": "Model name"
|
|
737
|
+
},
|
|
738
|
+
"url": {
|
|
739
|
+
"type": "string",
|
|
740
|
+
"description": "Ollama server URL"
|
|
741
|
+
},
|
|
742
|
+
"apiKey": {
|
|
743
|
+
"type": [
|
|
744
|
+
"string",
|
|
745
|
+
"null"
|
|
746
|
+
],
|
|
747
|
+
"description": "API key (if required)"
|
|
748
|
+
},
|
|
749
|
+
"config": {
|
|
750
|
+
"type": "object",
|
|
751
|
+
"description": "Model configuration"
|
|
752
|
+
},
|
|
753
|
+
"options": {
|
|
754
|
+
"type": "object",
|
|
755
|
+
"description": "Model options"
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"GenerationResult": {
|
|
760
|
+
"type": "object",
|
|
761
|
+
"description": "Generation result from DSP",
|
|
762
|
+
"properties": {
|
|
763
|
+
"text": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"description": "Generated text"
|
|
766
|
+
},
|
|
767
|
+
"data": {
|
|
768
|
+
"type": "object",
|
|
769
|
+
"description": "Extracted structured data"
|
|
770
|
+
},
|
|
771
|
+
"functions": {
|
|
772
|
+
"type": "array",
|
|
773
|
+
"description": "Function calls made during generation",
|
|
774
|
+
"items": {
|
|
775
|
+
"type": "object"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"reasoning": {
|
|
779
|
+
"type": "string",
|
|
780
|
+
"description": "Reasoning process"
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
"ChainOfThoughtResult": {
|
|
785
|
+
"type": "object",
|
|
786
|
+
"description": "Chain of thought result from DSP",
|
|
787
|
+
"properties": {
|
|
788
|
+
"text": {
|
|
789
|
+
"type": "string",
|
|
790
|
+
"description": "Generated text with reasoning"
|
|
791
|
+
},
|
|
792
|
+
"data": {
|
|
793
|
+
"type": "object",
|
|
794
|
+
"description": "Extracted structured data"
|
|
795
|
+
},
|
|
796
|
+
"thoughts": {
|
|
797
|
+
"type": "array",
|
|
798
|
+
"description": "Chain of thought steps",
|
|
799
|
+
"items": {
|
|
800
|
+
"type": "string"
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
"functions": {
|
|
804
|
+
"type": "array",
|
|
805
|
+
"description": "Function calls made during generation",
|
|
806
|
+
"items": {
|
|
807
|
+
"type": "object"
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"AgentResult": {
|
|
813
|
+
"type": "object",
|
|
814
|
+
"description": "Agent execution result",
|
|
815
|
+
"properties": {
|
|
816
|
+
"text": {
|
|
817
|
+
"type": "string",
|
|
818
|
+
"description": "Agent response text"
|
|
819
|
+
},
|
|
820
|
+
"data": {
|
|
821
|
+
"type": "object",
|
|
822
|
+
"description": "Task result data"
|
|
823
|
+
},
|
|
824
|
+
"agents_used": {
|
|
825
|
+
"type": "array",
|
|
826
|
+
"description": "Other agents used in execution",
|
|
827
|
+
"items": {
|
|
828
|
+
"type": "string"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"functions": {
|
|
832
|
+
"type": "array",
|
|
833
|
+
"description": "Function calls made during execution",
|
|
834
|
+
"items": {
|
|
835
|
+
"type": "object"
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"AxAgentInstance": {
|
|
841
|
+
"type": "object",
|
|
842
|
+
"description": "Agent instance (when forward=false)",
|
|
843
|
+
"properties": {
|
|
844
|
+
"name": {
|
|
845
|
+
"type": "string",
|
|
846
|
+
"description": "Agent name"
|
|
847
|
+
},
|
|
848
|
+
"description": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"description": "Agent description"
|
|
851
|
+
},
|
|
852
|
+
"signature": {
|
|
853
|
+
"type": "string",
|
|
854
|
+
"description": "Agent signature"
|
|
855
|
+
},
|
|
856
|
+
"functions": {
|
|
857
|
+
"type": "array",
|
|
858
|
+
"description": "Available functions",
|
|
859
|
+
"items": {
|
|
860
|
+
"$ref": "#/components/schemas/Function"
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
"agents": {
|
|
864
|
+
"type": "array",
|
|
865
|
+
"description": "Sub-agents",
|
|
866
|
+
"items": {
|
|
867
|
+
"type": "object"
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
484
872
|
}
|
|
873
|
+
},
|
|
874
|
+
"x-scene-blocks": {}
|
|
875
|
+
}
|