@digipair/skill-dsp 0.15.2 → 0.15.4
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 +609 -699
- package/index.esm.js +607 -695
- package/libs/skill-dsp/src/lib/skill-dsp.d.ts +8 -1
- package/package.json +1 -1
- package/schema.json +220 -1
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { PinsSettings } from '@digipair/engine';
|
|
2
|
-
import { AxAI, AxAIOpenAI, AxAIAzureOpenAI, AxAIOllama } from '@ax-llm/ax';
|
|
2
|
+
import { AxAI, AxAIOpenAI, AxAIAzureOpenAI, AxAIOllama, AxAgent } from '@ax-llm/ax';
|
|
3
3
|
export declare const model: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAI>;
|
|
4
4
|
export declare const modelOpenAI: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIOpenAI<string, string>>;
|
|
5
5
|
export declare const modelAzureOpenAi: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIAzureOpenAI>;
|
|
6
6
|
export declare const modelOllama: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIOllama>;
|
|
7
7
|
export declare const generate: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<import("@ax-llm/ax").AxGenerateResult<import("@ax-llm/ax").AxGenOut>>;
|
|
8
|
+
export declare const chainOfThought: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<import("@ax-llm/ax").AxGenOut & {
|
|
9
|
+
reason: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const react: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<import("@ax-llm/ax").AxGenOut & {
|
|
12
|
+
reason: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const agent: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<import("@ax-llm/ax").AxGenOut | AxAgent<import("@ax-llm/ax").AxGenIn, import("@ax-llm/ax").AxGenOut>>;
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -231,6 +231,201 @@
|
|
|
231
231
|
"schema": {
|
|
232
232
|
"type": "object"
|
|
233
233
|
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "functions",
|
|
237
|
+
"summary": "Fonctions DSP",
|
|
238
|
+
"required": false,
|
|
239
|
+
"description": "Fonctions utilisables pour la génération",
|
|
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": "Chaine de pensée DSP",
|
|
255
|
+
"parameters": [
|
|
256
|
+
{
|
|
257
|
+
"name": "model",
|
|
258
|
+
"summary": "Modèle",
|
|
259
|
+
"required": false,
|
|
260
|
+
"description": "Modèle LLM à utiliser pour la génération",
|
|
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 des données à extraire",
|
|
273
|
+
"schema": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "input",
|
|
279
|
+
"summary": "Données à traiter",
|
|
280
|
+
"required": true,
|
|
281
|
+
"description": "Données d'entrées à traiter",
|
|
282
|
+
"schema": {
|
|
283
|
+
"type": "object"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "functions",
|
|
288
|
+
"summary": "Fonctions DSP",
|
|
289
|
+
"required": false,
|
|
290
|
+
"description": "Fonctions utilisables pour la chaine de pensée",
|
|
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": "Modèle",
|
|
310
|
+
"required": false,
|
|
311
|
+
"description": "Modèle LLM à utiliser pour la génération",
|
|
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 des données à extraire",
|
|
324
|
+
"schema": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "input",
|
|
330
|
+
"summary": "Données à traiter",
|
|
331
|
+
"required": true,
|
|
332
|
+
"description": "Données d'entrées à traiter",
|
|
333
|
+
"schema": {
|
|
334
|
+
"type": "object"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "functions",
|
|
339
|
+
"summary": "Fonctions DSP",
|
|
340
|
+
"required": false,
|
|
341
|
+
"description": "Fonctions utilisables pour la génération",
|
|
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": "Agent DSP",
|
|
357
|
+
"parameters": [
|
|
358
|
+
{
|
|
359
|
+
"name": "model",
|
|
360
|
+
"summary": "Modèle",
|
|
361
|
+
"required": false,
|
|
362
|
+
"description": "Modèle LLM à utiliser pour la génération",
|
|
363
|
+
"schema": {
|
|
364
|
+
"type": "array",
|
|
365
|
+
"items": {
|
|
366
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "name",
|
|
372
|
+
"summary": "Nom",
|
|
373
|
+
"required": true,
|
|
374
|
+
"description": "Nom de l'agent",
|
|
375
|
+
"schema": {
|
|
376
|
+
"type": "string"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "description",
|
|
381
|
+
"summary": "Description",
|
|
382
|
+
"required": true,
|
|
383
|
+
"description": "Description de l'agent",
|
|
384
|
+
"schema": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "signature",
|
|
390
|
+
"summary": "Signature",
|
|
391
|
+
"required": true,
|
|
392
|
+
"description": "Signature des données à extraire",
|
|
393
|
+
"schema": {
|
|
394
|
+
"type": "string"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "input",
|
|
399
|
+
"summary": "Données à traiter",
|
|
400
|
+
"required": true,
|
|
401
|
+
"description": "Données d'entrées à traiter",
|
|
402
|
+
"schema": {
|
|
403
|
+
"type": "object"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "functions",
|
|
408
|
+
"summary": "Fonctions DSP",
|
|
409
|
+
"required": false,
|
|
410
|
+
"description": "Fonctions utilisables pour la génération",
|
|
411
|
+
"schema": {
|
|
412
|
+
"type": "array",
|
|
413
|
+
"items": {
|
|
414
|
+
"$ref": "#/components/schemas/Function"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "agents",
|
|
420
|
+
"summary": "Agents DSP",
|
|
421
|
+
"required": false,
|
|
422
|
+
"description": "Autres agents utilisables par l'agent",
|
|
423
|
+
"schema": {
|
|
424
|
+
"type": "array",
|
|
425
|
+
"items": {
|
|
426
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
234
429
|
}
|
|
235
430
|
],
|
|
236
431
|
"x-events": []
|
|
@@ -238,7 +433,31 @@
|
|
|
238
433
|
}
|
|
239
434
|
},
|
|
240
435
|
"components": {
|
|
241
|
-
"schemas": {
|
|
436
|
+
"schemas": {
|
|
437
|
+
"Function": {
|
|
438
|
+
"tags": ["service"],
|
|
439
|
+
"summary": "Fonction DSP",
|
|
440
|
+
"type": "object",
|
|
441
|
+
"properties": {
|
|
442
|
+
"name": {
|
|
443
|
+
"type": "string"
|
|
444
|
+
},
|
|
445
|
+
"descriptions": {
|
|
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
|
+
}
|
|
242
461
|
},
|
|
243
462
|
"x-scene-blocks": {}
|
|
244
463
|
}
|