@digipair/skill-dsp 0.99.4 → 0.100.1

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.
@@ -1,9 +1,7 @@
1
1
  import { PinsSettings } from '@digipair/engine';
2
- import { AxAI, AxAIAzureOpenAI, AxAIOllama, AxAIOpenAIBase } from '@digipair/ax';
3
- export declare const model: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAI>;
4
- export declare const modelOpenAI: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIOpenAIBase<unknown, unknown, import("@digipair/ax").AxAIOpenAIChatRequest<unknown>>>;
5
- export declare const modelAzureOpenAi: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIAzureOpenAI>;
6
- export declare const modelOllama: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIOllama>;
2
+ import { AxAI, AxAIAzureOpenAI, AxAIOllama, AxAIOpenAIBase } from '@ax-llm/ax';
3
+ export declare const model: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAI<string>>;
4
+ export declare const modelOpenAI: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIOpenAIBase<unknown, unknown, unknown, import("@ax-llm/ax").AxAIOpenAIChatRequest<unknown>>>;
5
+ export declare const modelAzureOpenAi: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIAzureOpenAI<unknown>>;
6
+ export declare const modelOllama: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AxAIOllama<unknown>>;
7
7
  export declare const generate: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
8
- export declare const chainOfThought: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
9
- export declare const agent: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-dsp",
3
- "version": "0.99.4",
3
+ "version": "0.100.1",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -347,215 +347,6 @@
347
347
  }
348
348
  }
349
349
  }
350
- },
351
- "/chainOfThought": {
352
- "post": {
353
- "tags": [
354
- "service"
355
- ],
356
- "summary": "Chaine de pensée 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": "streaming",
372
- "summary": "Streaming",
373
- "required": false,
374
- "description": "Evènement déclenché lors du streaming",
375
- "schema": {
376
- "type": "array",
377
- "items": {
378
- "$ref": "https://schemas.digipair.ai/pinsSettings"
379
- }
380
- }
381
- },
382
- {
383
- "name": "signature",
384
- "summary": "Signature",
385
- "required": true,
386
- "description": "Signature des données à extraire",
387
- "schema": {
388
- "type": "string"
389
- }
390
- },
391
- {
392
- "name": "input",
393
- "summary": "Données à traiter",
394
- "required": true,
395
- "description": "Données d'entrées à traiter",
396
- "schema": {
397
- "type": "object"
398
- }
399
- },
400
- {
401
- "name": "functions",
402
- "summary": "Fonctions DSP",
403
- "required": false,
404
- "description": "Fonctions utilisables pour la chaine de pensée",
405
- "schema": {
406
- "type": "array",
407
- "items": {
408
- "$ref": "#/components/schemas/Function"
409
- }
410
- }
411
- },
412
- {
413
- "name": "options",
414
- "summary": "Options",
415
- "required": false,
416
- "description": "Options de génération",
417
- "schema": {
418
- "type": "object"
419
- }
420
- }
421
- ],
422
- "x-events": [],
423
- "responses": {
424
- "200": {
425
- "description": "Réponse réussie",
426
- "content": {
427
- "application/json": {
428
- "schema": {
429
- "$ref": "#/components/schemas/ChainOfThoughtResult"
430
- }
431
- }
432
- }
433
- }
434
- }
435
- }
436
- },
437
- "/agent": {
438
- "post": {
439
- "tags": [
440
- "service"
441
- ],
442
- "summary": "Agent DSP",
443
- "parameters": [
444
- {
445
- "name": "model",
446
- "summary": "Modèle",
447
- "required": false,
448
- "description": "Modèle LLM à utiliser pour la génération",
449
- "schema": {
450
- "type": "array",
451
- "items": {
452
- "$ref": "https://schemas.digipair.ai/pinsSettings"
453
- }
454
- }
455
- },
456
- {
457
- "name": "streaming",
458
- "summary": "Streaming",
459
- "required": false,
460
- "description": "Evènement déclenché lors du streaming",
461
- "schema": {
462
- "type": "array",
463
- "items": {
464
- "$ref": "https://schemas.digipair.ai/pinsSettings"
465
- }
466
- }
467
- },
468
- {
469
- "name": "name",
470
- "summary": "Nom",
471
- "required": true,
472
- "description": "Nom de l'agent",
473
- "schema": {
474
- "type": "string"
475
- }
476
- },
477
- {
478
- "name": "description",
479
- "summary": "Description",
480
- "required": true,
481
- "description": "Description de l'agent",
482
- "schema": {
483
- "type": "string"
484
- }
485
- },
486
- {
487
- "name": "signature",
488
- "summary": "Signature",
489
- "required": true,
490
- "description": "Signature des données à extraire",
491
- "schema": {
492
- "type": "string"
493
- }
494
- },
495
- {
496
- "name": "input",
497
- "summary": "Données à traiter",
498
- "required": false,
499
- "description": "Données d'entrées à traiter",
500
- "schema": {
501
- "type": "object"
502
- }
503
- },
504
- {
505
- "name": "functions",
506
- "summary": "Fonctions DSP",
507
- "required": false,
508
- "description": "Fonctions utilisables pour la génération",
509
- "schema": {
510
- "type": "array",
511
- "items": {
512
- "$ref": "#/components/schemas/Function"
513
- }
514
- }
515
- },
516
- {
517
- "name": "agents",
518
- "summary": "Agents DSP",
519
- "required": false,
520
- "description": "Autres agents utilisables par l'agent",
521
- "schema": {
522
- "type": "array",
523
- "items": {
524
- "$ref": "https://schemas.digipair.ai/pinsSettings"
525
- }
526
- }
527
- },
528
- {
529
- "name": "options",
530
- "summary": "Options",
531
- "required": false,
532
- "description": "Options de génération",
533
- "schema": {
534
- "type": "object"
535
- }
536
- }
537
- ],
538
- "x-events": [],
539
- "responses": {
540
- "200": {
541
- "description": "Réponse réussie",
542
- "content": {
543
- "application/json": {
544
- "schema": {
545
- "oneOf": [
546
- {
547
- "$ref": "#/components/schemas/AgentResult"
548
- },
549
- {
550
- "$ref": "#/components/schemas/AxAgentInstance"
551
- }
552
- ]
553
- }
554
- }
555
- }
556
- }
557
- }
558
- }
559
350
  }
560
351
  },
561
352
  "components": {
@@ -722,97 +513,6 @@
722
513
  "description": "Processus de raisonnement"
723
514
  }
724
515
  }
725
- },
726
- "ChainOfThoughtResult": {
727
- "tags": [],
728
- "type": "object",
729
- "description": "Résultat de chaîne de pensée DSP",
730
- "properties": {
731
- "text": {
732
- "type": "string",
733
- "description": "Texte généré avec raisonnement"
734
- },
735
- "data": {
736
- "type": "object",
737
- "description": "Données structurées extraites"
738
- },
739
- "thoughts": {
740
- "type": "array",
741
- "description": "Étapes de la chaîne de pensée",
742
- "items": {
743
- "type": "string"
744
- }
745
- },
746
- "functions": {
747
- "type": "array",
748
- "description": "Appels de fonction effectués pendant la génération",
749
- "items": {
750
- "type": "object"
751
- }
752
- }
753
- }
754
- },
755
- "AgentResult": {
756
- "tags": [],
757
- "type": "object",
758
- "description": "Résultat d'exécution d'agent",
759
- "properties": {
760
- "text": {
761
- "type": "string",
762
- "description": "Texte de réponse de l'agent"
763
- },
764
- "data": {
765
- "type": "object",
766
- "description": "Données de résultat de tâche"
767
- },
768
- "agents_used": {
769
- "type": "array",
770
- "description": "Autres agents utilisés dans l'exécution",
771
- "items": {
772
- "type": "string"
773
- }
774
- },
775
- "functions": {
776
- "type": "array",
777
- "description": "Appels de fonction effectués pendant l'exécution",
778
- "items": {
779
- "type": "object"
780
- }
781
- }
782
- }
783
- },
784
- "AxAgentInstance": {
785
- "tags": [],
786
- "type": "object",
787
- "description": "Instance d'agent (quand forward=false)",
788
- "properties": {
789
- "name": {
790
- "type": "string",
791
- "description": "Nom de l'agent"
792
- },
793
- "description": {
794
- "type": "string",
795
- "description": "Description de l'agent"
796
- },
797
- "signature": {
798
- "type": "string",
799
- "description": "Signature de l'agent"
800
- },
801
- "functions": {
802
- "type": "array",
803
- "description": "Fonctions disponibles",
804
- "items": {
805
- "$ref": "#/components/schemas/Function"
806
- }
807
- },
808
- "agents": {
809
- "type": "array",
810
- "description": "Sous-agents",
811
- "items": {
812
- "type": "object"
813
- }
814
- }
815
- }
816
516
  }
817
517
  }
818
518
  },
package/schema.json CHANGED
@@ -347,215 +347,6 @@
347
347
  }
348
348
  }
349
349
  }
350
- },
351
- "/chainOfThought": {
352
- "post": {
353
- "tags": [
354
- "service"
355
- ],
356
- "summary": "DSP Chain of Thought",
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": "streaming",
372
- "summary": "Streaming",
373
- "required": false,
374
- "description": "Streaming event for the generation",
375
- "schema": {
376
- "type": "array",
377
- "items": {
378
- "$ref": "https://schemas.digipair.ai/pinsSettings"
379
- }
380
- }
381
- },
382
- {
383
- "name": "signature",
384
- "summary": "Signature",
385
- "required": true,
386
- "description": "Signature of the data to extract",
387
- "schema": {
388
- "type": "string"
389
- }
390
- },
391
- {
392
- "name": "input",
393
- "summary": "Data to Process",
394
- "required": true,
395
- "description": "Input data to process",
396
- "schema": {
397
- "type": "object"
398
- }
399
- },
400
- {
401
- "name": "functions",
402
- "summary": "DSP Functions",
403
- "required": false,
404
- "description": "Functions usable for the chain of thought",
405
- "schema": {
406
- "type": "array",
407
- "items": {
408
- "$ref": "#/components/schemas/Function"
409
- }
410
- }
411
- },
412
- {
413
- "name": "options",
414
- "summary": "Options",
415
- "required": false,
416
- "description": "Generation options",
417
- "schema": {
418
- "type": "object"
419
- }
420
- }
421
- ],
422
- "x-events": [],
423
- "responses": {
424
- "200": {
425
- "description": "Successful response",
426
- "content": {
427
- "application/json": {
428
- "schema": {
429
- "$ref": "#/components/schemas/ChainOfThoughtResult"
430
- }
431
- }
432
- }
433
- }
434
- }
435
- }
436
- },
437
- "/agent": {
438
- "post": {
439
- "tags": [
440
- "service"
441
- ],
442
- "summary": "DSP Agent",
443
- "parameters": [
444
- {
445
- "name": "model",
446
- "summary": "Model",
447
- "required": false,
448
- "description": "LLM model to use for generation",
449
- "schema": {
450
- "type": "array",
451
- "items": {
452
- "$ref": "https://schemas.digipair.ai/pinsSettings"
453
- }
454
- }
455
- },
456
- {
457
- "name": "streaming",
458
- "summary": "Streaming",
459
- "required": false,
460
- "description": "Streaming event for the generation",
461
- "schema": {
462
- "type": "array",
463
- "items": {
464
- "$ref": "https://schemas.digipair.ai/pinsSettings"
465
- }
466
- }
467
- },
468
- {
469
- "name": "name",
470
- "summary": "Name",
471
- "required": true,
472
- "description": "Name of the agent",
473
- "schema": {
474
- "type": "string"
475
- }
476
- },
477
- {
478
- "name": "description",
479
- "summary": "Description",
480
- "required": true,
481
- "description": "Description of the agent",
482
- "schema": {
483
- "type": "string"
484
- }
485
- },
486
- {
487
- "name": "signature",
488
- "summary": "Signature",
489
- "required": true,
490
- "description": "Signature of the data to extract",
491
- "schema": {
492
- "type": "string"
493
- }
494
- },
495
- {
496
- "name": "input",
497
- "summary": "Data to Process",
498
- "required": false,
499
- "description": "Input data to process",
500
- "schema": {
501
- "type": "object"
502
- }
503
- },
504
- {
505
- "name": "functions",
506
- "summary": "DSP Functions",
507
- "required": false,
508
- "description": "Functions usable for generation",
509
- "schema": {
510
- "type": "array",
511
- "items": {
512
- "$ref": "#/components/schemas/Function"
513
- }
514
- }
515
- },
516
- {
517
- "name": "agents",
518
- "summary": "DSP Agents",
519
- "required": false,
520
- "description": "Other agents usable by the agent",
521
- "schema": {
522
- "type": "array",
523
- "items": {
524
- "$ref": "https://schemas.digipair.ai/pinsSettings"
525
- }
526
- }
527
- },
528
- {
529
- "name": "options",
530
- "summary": "Options",
531
- "required": false,
532
- "description": "Generation options",
533
- "schema": {
534
- "type": "object"
535
- }
536
- }
537
- ],
538
- "x-events": [],
539
- "responses": {
540
- "200": {
541
- "description": "Successful response",
542
- "content": {
543
- "application/json": {
544
- "schema": {
545
- "oneOf": [
546
- {
547
- "$ref": "#/components/schemas/AgentResult"
548
- },
549
- {
550
- "$ref": "#/components/schemas/AxAgentInstance"
551
- }
552
- ]
553
- }
554
- }
555
- }
556
- }
557
- }
558
- }
559
350
  }
560
351
  },
561
352
  "components": {
@@ -722,97 +513,6 @@
722
513
  "description": "Reasoning process"
723
514
  }
724
515
  }
725
- },
726
- "ChainOfThoughtResult": {
727
- "tags": [],
728
- "type": "object",
729
- "description": "Chain of thought result from DSP",
730
- "properties": {
731
- "text": {
732
- "type": "string",
733
- "description": "Generated text with reasoning"
734
- },
735
- "data": {
736
- "type": "object",
737
- "description": "Extracted structured data"
738
- },
739
- "thoughts": {
740
- "type": "array",
741
- "description": "Chain of thought steps",
742
- "items": {
743
- "type": "string"
744
- }
745
- },
746
- "functions": {
747
- "type": "array",
748
- "description": "Function calls made during generation",
749
- "items": {
750
- "type": "object"
751
- }
752
- }
753
- }
754
- },
755
- "AgentResult": {
756
- "tags": [],
757
- "type": "object",
758
- "description": "Agent execution result",
759
- "properties": {
760
- "text": {
761
- "type": "string",
762
- "description": "Agent response text"
763
- },
764
- "data": {
765
- "type": "object",
766
- "description": "Task result data"
767
- },
768
- "agents_used": {
769
- "type": "array",
770
- "description": "Other agents used in execution",
771
- "items": {
772
- "type": "string"
773
- }
774
- },
775
- "functions": {
776
- "type": "array",
777
- "description": "Function calls made during execution",
778
- "items": {
779
- "type": "object"
780
- }
781
- }
782
- }
783
- },
784
- "AxAgentInstance": {
785
- "tags": [],
786
- "type": "object",
787
- "description": "Agent instance (when forward=false)",
788
- "properties": {
789
- "name": {
790
- "type": "string",
791
- "description": "Agent name"
792
- },
793
- "description": {
794
- "type": "string",
795
- "description": "Agent description"
796
- },
797
- "signature": {
798
- "type": "string",
799
- "description": "Agent signature"
800
- },
801
- "functions": {
802
- "type": "array",
803
- "description": "Available functions",
804
- "items": {
805
- "$ref": "#/components/schemas/Function"
806
- }
807
- },
808
- "agents": {
809
- "type": "array",
810
- "description": "Sub-agents",
811
- "items": {
812
- "type": "object"
813
- }
814
- }
815
- }
816
516
  }
817
517
  }
818
518
  },