@digipair/skill-worker 0.110.0 → 0.110.2
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
- package/schema.fr.json +38 -18
- package/schema.json +10 -9
package/index.cjs.js
CHANGED
|
@@ -45886,10 +45886,10 @@ let WorkerService = class WorkerService {
|
|
|
45886
45886
|
};
|
|
45887
45887
|
}
|
|
45888
45888
|
async answer(params, _pinsSettingsList, context) {
|
|
45889
|
-
const { content,
|
|
45889
|
+
const { content, prompt, sources, agent_history } = params;
|
|
45890
45890
|
return {
|
|
45891
45891
|
content,
|
|
45892
|
-
|
|
45892
|
+
prompt,
|
|
45893
45893
|
sources,
|
|
45894
45894
|
agent_history
|
|
45895
45895
|
};
|
package/index.esm.js
CHANGED
|
@@ -45864,10 +45864,10 @@ let WorkerService = class WorkerService {
|
|
|
45864
45864
|
};
|
|
45865
45865
|
}
|
|
45866
45866
|
async answer(params, _pinsSettingsList, context) {
|
|
45867
|
-
const { content,
|
|
45867
|
+
const { content, prompt, sources, agent_history } = params;
|
|
45868
45868
|
return {
|
|
45869
45869
|
content,
|
|
45870
|
-
|
|
45870
|
+
prompt,
|
|
45871
45871
|
sources,
|
|
45872
45872
|
agent_history
|
|
45873
45873
|
};
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"/activity": {
|
|
12
12
|
"post": {
|
|
13
|
-
"tags": [
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
14
16
|
"summary": "Activité",
|
|
15
17
|
"description": "Exécute une activité.",
|
|
16
18
|
"parameters": [
|
|
@@ -54,7 +56,9 @@
|
|
|
54
56
|
},
|
|
55
57
|
"/stop": {
|
|
56
58
|
"post": {
|
|
57
|
-
"tags": [
|
|
59
|
+
"tags": [
|
|
60
|
+
"service"
|
|
61
|
+
],
|
|
58
62
|
"summary": "Stop",
|
|
59
63
|
"description": "Stop le raisonnement",
|
|
60
64
|
"parameters": [
|
|
@@ -85,7 +89,9 @@
|
|
|
85
89
|
},
|
|
86
90
|
"/answer": {
|
|
87
91
|
"post": {
|
|
88
|
-
"tags": [
|
|
92
|
+
"tags": [
|
|
93
|
+
"service"
|
|
94
|
+
],
|
|
89
95
|
"summary": "Répondre",
|
|
90
96
|
"description": "Fournit une réponse de l'agent.",
|
|
91
97
|
"parameters": [
|
|
@@ -95,14 +101,15 @@
|
|
|
95
101
|
"required": true,
|
|
96
102
|
"description": "Contenu de la réponse",
|
|
97
103
|
"schema": {
|
|
98
|
-
"type": "
|
|
104
|
+
"type": "object",
|
|
105
|
+
"additionalProperties": true
|
|
99
106
|
}
|
|
100
107
|
},
|
|
101
108
|
{
|
|
102
|
-
"name": "
|
|
103
|
-
"summary": "
|
|
109
|
+
"name": "prompt",
|
|
110
|
+
"summary": "Prompt",
|
|
104
111
|
"required": false,
|
|
105
|
-
"description": "Détails supplémentaires
|
|
112
|
+
"description": "Détails supplémentaires du prompt",
|
|
106
113
|
"schema": {
|
|
107
114
|
"type": "string"
|
|
108
115
|
}
|
|
@@ -143,14 +150,14 @@
|
|
|
143
150
|
"type": "object",
|
|
144
151
|
"properties": {
|
|
145
152
|
"content": {
|
|
146
|
-
"type": "string",
|
|
147
|
-
"description": "Contenu de la réponse"
|
|
148
|
-
},
|
|
149
|
-
"assistant": {
|
|
150
153
|
"type": "object",
|
|
151
|
-
"description": "
|
|
154
|
+
"description": "Contenu de la réponse",
|
|
152
155
|
"additionalProperties": true
|
|
153
156
|
},
|
|
157
|
+
"prompt": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"description": "Détails supplémentaires du prompt"
|
|
160
|
+
},
|
|
154
161
|
"sources": {
|
|
155
162
|
"type": "array",
|
|
156
163
|
"description": "Sources d'information utilisées pour générer la réponse",
|
|
@@ -168,7 +175,9 @@
|
|
|
168
175
|
}
|
|
169
176
|
}
|
|
170
177
|
},
|
|
171
|
-
"required": [
|
|
178
|
+
"required": [
|
|
179
|
+
"content"
|
|
180
|
+
]
|
|
172
181
|
}
|
|
173
182
|
}
|
|
174
183
|
}
|
|
@@ -182,7 +191,9 @@
|
|
|
182
191
|
"/task": {
|
|
183
192
|
"summary": "Tache",
|
|
184
193
|
"description": "Exécution d'une tache.",
|
|
185
|
-
"tags": [
|
|
194
|
+
"tags": [
|
|
195
|
+
"service"
|
|
196
|
+
],
|
|
186
197
|
"metadata": [],
|
|
187
198
|
"parameters": [
|
|
188
199
|
{
|
|
@@ -202,7 +213,9 @@
|
|
|
202
213
|
"/action": {
|
|
203
214
|
"summary": "Action",
|
|
204
215
|
"description": "Action exécutable.",
|
|
205
|
-
"tags": [
|
|
216
|
+
"tags": [
|
|
217
|
+
"service"
|
|
218
|
+
],
|
|
206
219
|
"metadata": [
|
|
207
220
|
{
|
|
208
221
|
"name": "parameters",
|
|
@@ -255,7 +268,9 @@
|
|
|
255
268
|
"schemas": {
|
|
256
269
|
"Parameter": {
|
|
257
270
|
"type": "object",
|
|
258
|
-
"tags": [
|
|
271
|
+
"tags": [
|
|
272
|
+
"service"
|
|
273
|
+
],
|
|
259
274
|
"summary": "Parameter",
|
|
260
275
|
"properties": {
|
|
261
276
|
"name": {
|
|
@@ -283,8 +298,13 @@
|
|
|
283
298
|
"type": "string"
|
|
284
299
|
}
|
|
285
300
|
},
|
|
286
|
-
"required": [
|
|
301
|
+
"required": [
|
|
302
|
+
"name",
|
|
303
|
+
"summary",
|
|
304
|
+
"required",
|
|
305
|
+
"schema"
|
|
306
|
+
]
|
|
287
307
|
}
|
|
288
308
|
}
|
|
289
309
|
}
|
|
290
|
-
}
|
|
310
|
+
}
|
package/schema.json
CHANGED
|
@@ -144,14 +144,15 @@
|
|
|
144
144
|
"required": true,
|
|
145
145
|
"description": "Content of the response",
|
|
146
146
|
"schema": {
|
|
147
|
-
"type": "
|
|
147
|
+
"type": "object",
|
|
148
|
+
"additionalProperties": true
|
|
148
149
|
}
|
|
149
150
|
},
|
|
150
151
|
{
|
|
151
|
-
"name": "
|
|
152
|
-
"summary": "
|
|
152
|
+
"name": "prompt",
|
|
153
|
+
"summary": "Prompt",
|
|
153
154
|
"required": false,
|
|
154
|
-
"description": "Additional
|
|
155
|
+
"description": "Additional prompt details",
|
|
155
156
|
"schema": {
|
|
156
157
|
"type": "string"
|
|
157
158
|
}
|
|
@@ -192,14 +193,14 @@
|
|
|
192
193
|
"type": "object",
|
|
193
194
|
"properties": {
|
|
194
195
|
"content": {
|
|
195
|
-
"type": "string",
|
|
196
|
-
"description": "Content of the response"
|
|
197
|
-
},
|
|
198
|
-
"assistant": {
|
|
199
196
|
"type": "object",
|
|
200
|
-
"description": "
|
|
197
|
+
"description": "Content of the response",
|
|
201
198
|
"additionalProperties": true
|
|
202
199
|
},
|
|
200
|
+
"prompt": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"description": "Additional prompt details"
|
|
203
|
+
},
|
|
203
204
|
"sources": {
|
|
204
205
|
"type": "array",
|
|
205
206
|
"description": "Sources of information used to generate the response",
|