@digipair/skill-llm 0.4.2 → 0.4.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 +8 -8
- package/index.esm.js +8 -8
- package/package.json +1 -1
- package/schema.json +101 -0
package/index.cjs.js
CHANGED
@@ -23510,14 +23510,14 @@ function indent(str, spaces) {
|
|
23510
23510
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23511
23511
|
// match is required
|
23512
23512
|
if (!match) {
|
23513
|
-
return
|
23513
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
23514
23514
|
v: nextMatch1
|
23515
23515
|
};
|
23516
23516
|
}
|
23517
23517
|
var token = match.token, offset = match.offset;
|
23518
23518
|
i1 += offset;
|
23519
23519
|
if (token === " ") {
|
23520
|
-
return
|
23520
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
23521
23521
|
}
|
23522
23522
|
tokens1 = _to_consumable_array$s(tokens1).concat([
|
23523
23523
|
token
|
@@ -23536,7 +23536,7 @@ function indent(str, spaces) {
|
|
23536
23536
|
if (contextKeys.some(function(el) {
|
23537
23537
|
return el.startsWith(name);
|
23538
23538
|
})) {
|
23539
|
-
return
|
23539
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
23540
23540
|
}
|
23541
23541
|
if (dateTimeIdentifiers.some(function(el) {
|
23542
23542
|
return el === name;
|
@@ -23555,9 +23555,9 @@ function indent(str, spaces) {
|
|
23555
23555
|
if (dateTimeIdentifiers.some(function(el) {
|
23556
23556
|
return el.startsWith(name);
|
23557
23557
|
})) {
|
23558
|
-
return
|
23558
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
23559
23559
|
}
|
23560
|
-
return
|
23560
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
23561
23561
|
v: nextMatch1
|
23562
23562
|
};
|
23563
23563
|
};
|
@@ -60141,11 +60141,11 @@ let LLMService = class LLMService {
|
|
60141
60141
|
}
|
60142
60142
|
return result;
|
60143
60143
|
}
|
60144
|
-
async invoke(params,
|
60145
|
-
const { input = {} } = params;
|
60144
|
+
async invoke(params, _pinsSettingsList, context) {
|
60145
|
+
const { execute, input = {} } = params;
|
60146
60146
|
const chain = RunnableSequence.from([
|
60147
60147
|
this.objectToInput(input),
|
60148
|
-
...await Promise.all(
|
60148
|
+
...await Promise.all(execute.map((pinsSettings)=>executePins(pinsSettings, context)))
|
60149
60149
|
]);
|
60150
60150
|
const result = await chain.invoke({});
|
60151
60151
|
return result;
|
package/index.esm.js
CHANGED
@@ -23488,14 +23488,14 @@ function indent(str, spaces) {
|
|
23488
23488
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23489
23489
|
// match is required
|
23490
23490
|
if (!match) {
|
23491
|
-
return
|
23491
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
23492
23492
|
v: nextMatch1
|
23493
23493
|
};
|
23494
23494
|
}
|
23495
23495
|
var token = match.token, offset = match.offset;
|
23496
23496
|
i1 += offset;
|
23497
23497
|
if (token === " ") {
|
23498
|
-
return
|
23498
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
23499
23499
|
}
|
23500
23500
|
tokens1 = _to_consumable_array$s(tokens1).concat([
|
23501
23501
|
token
|
@@ -23514,7 +23514,7 @@ function indent(str, spaces) {
|
|
23514
23514
|
if (contextKeys.some(function(el) {
|
23515
23515
|
return el.startsWith(name);
|
23516
23516
|
})) {
|
23517
|
-
return
|
23517
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
23518
23518
|
}
|
23519
23519
|
if (dateTimeIdentifiers.some(function(el) {
|
23520
23520
|
return el === name;
|
@@ -23533,9 +23533,9 @@ function indent(str, spaces) {
|
|
23533
23533
|
if (dateTimeIdentifiers.some(function(el) {
|
23534
23534
|
return el.startsWith(name);
|
23535
23535
|
})) {
|
23536
|
-
return
|
23536
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
23537
23537
|
}
|
23538
|
-
return
|
23538
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
23539
23539
|
v: nextMatch1
|
23540
23540
|
};
|
23541
23541
|
};
|
@@ -60119,11 +60119,11 @@ let LLMService = class LLMService {
|
|
60119
60119
|
}
|
60120
60120
|
return result;
|
60121
60121
|
}
|
60122
|
-
async invoke(params,
|
60123
|
-
const { input = {} } = params;
|
60122
|
+
async invoke(params, _pinsSettingsList, context) {
|
60123
|
+
const { execute, input = {} } = params;
|
60124
60124
|
const chain = RunnableSequence.from([
|
60125
60125
|
this.objectToInput(input),
|
60126
|
-
...await Promise.all(
|
60126
|
+
...await Promise.all(execute.map((pinsSettings)=>executePins(pinsSettings, context)))
|
60127
60127
|
]);
|
60128
60128
|
const result = await chain.invoke({});
|
60129
60129
|
return result;
|
package/package.json
CHANGED
package/schema.json
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
{
|
2
|
+
"openapi": "3.0.0",
|
3
|
+
"info": {
|
4
|
+
"title": "@digipair/skill-llm",
|
5
|
+
"description": "La compétence @digipair/skill-llm est une compétence qui permet d'utiliser un modèle de langage à grande échelle.",
|
6
|
+
"version": "0.1.0",
|
7
|
+
"x-icon": "🚀"
|
8
|
+
},
|
9
|
+
"paths": {
|
10
|
+
"/invoke": {
|
11
|
+
"post": {
|
12
|
+
"tags": [],
|
13
|
+
"summary": "invoke",
|
14
|
+
"parameters": [
|
15
|
+
{
|
16
|
+
"name": "execute",
|
17
|
+
"required": true,
|
18
|
+
"description": "Exécute",
|
19
|
+
"schema": {
|
20
|
+
"type": "array",
|
21
|
+
"items": {
|
22
|
+
"$ref": "https://www.pinser.world/schemas/pinsSettings"
|
23
|
+
}
|
24
|
+
}
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"name": "input",
|
28
|
+
"summary": "Données d'entrée",
|
29
|
+
"required": false,
|
30
|
+
"description": "input",
|
31
|
+
"schema": {
|
32
|
+
"type": "object"
|
33
|
+
}
|
34
|
+
}
|
35
|
+
],
|
36
|
+
"x-events": {}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"/reasoningStep": {
|
40
|
+
"post": {
|
41
|
+
"tags": [],
|
42
|
+
"summary": "Etape de raisonnement",
|
43
|
+
"parameters": [
|
44
|
+
{
|
45
|
+
"name": "attributes",
|
46
|
+
"summary": "Données",
|
47
|
+
"required": true,
|
48
|
+
"description": "attributes",
|
49
|
+
"schema": {
|
50
|
+
"type": "array",
|
51
|
+
"items": {
|
52
|
+
"$ref": "#/components/schemas/reasonningStepAttribute"
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
],
|
57
|
+
"x-events": {}
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"/reasoningStepValue": {
|
61
|
+
"post": {
|
62
|
+
"tags": [],
|
63
|
+
"summary": "Valeur statique",
|
64
|
+
"parameters": [
|
65
|
+
{
|
66
|
+
"name": "value",
|
67
|
+
"summary": "Contenu",
|
68
|
+
"required": true,
|
69
|
+
"description": "value",
|
70
|
+
"schema": {
|
71
|
+
"type": "object"
|
72
|
+
}
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"x-events": {}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"components": {
|
80
|
+
"schemas": {
|
81
|
+
"reasonningStepAttribute": {
|
82
|
+
"summary": "",
|
83
|
+
"type": "object",
|
84
|
+
"properties": {
|
85
|
+
"name": {
|
86
|
+
"type": "string",
|
87
|
+
"summary": "Nom"
|
88
|
+
},
|
89
|
+
"value": {
|
90
|
+
"summary": "Valeur",
|
91
|
+
"type": "array",
|
92
|
+
"items": {
|
93
|
+
"$ref": "https://www.pinser.world/schemas/pinsSettings"
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"required": ["name", "value"]
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|