@digipair/skill-chatbot 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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/schema.fr.json +109 -11
  3. package/schema.json +109 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-chatbot",
3
- "version": "0.95.7",
3
+ "version": "0.97.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/answer": {
12
12
  "post": {
13
- "tags": ["boost"],
13
+ "tags": [
14
+ "boost"
15
+ ],
14
16
  "summary": "Réponse du chatbot",
15
17
  "parameters": [
16
18
  {
@@ -113,12 +115,78 @@
113
115
  }
114
116
  }
115
117
  ],
116
- "x-events": []
118
+ "x-events": [],
119
+ "responses": {
120
+ "200": {
121
+ "description": "Réponse du chatbot préparée avec succès",
122
+ "content": {
123
+ "application/json": {
124
+ "schema": {
125
+ "type": "object",
126
+ "properties": {
127
+ "assistant": {
128
+ "type": "string",
129
+ "description": "Réponse de l'assistant"
130
+ },
131
+ "command": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "object"
135
+ },
136
+ "description": "Commandes à exécuter"
137
+ },
138
+ "boosts": {
139
+ "type": "array",
140
+ "items": {
141
+ "type": "object"
142
+ },
143
+ "description": "Boosts disponibles"
144
+ },
145
+ "sources": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "object"
149
+ },
150
+ "description": "Références des sources"
151
+ },
152
+ "logs": {
153
+ "type": "object",
154
+ "description": "Journaux de débogage"
155
+ },
156
+ "boost": {
157
+ "type": "object",
158
+ "nullable": true,
159
+ "description": "Configuration du boost"
160
+ },
161
+ "parent_conversation": {
162
+ "type": "string",
163
+ "description": "ID de la conversation parente"
164
+ },
165
+ "parent_history": {
166
+ "type": "string",
167
+ "description": "ID du message parent"
168
+ },
169
+ "session": {
170
+ "type": "string",
171
+ "description": "ID de session"
172
+ },
173
+ "uuid": {
174
+ "type": "string",
175
+ "description": "UUID du message"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
117
183
  }
118
184
  },
119
185
  "/execute": {
120
186
  "post": {
121
- "tags": ["boost"],
187
+ "tags": [
188
+ "boost"
189
+ ],
122
190
  "summary": "Execute une étape",
123
191
  "description": "Execute une étape d'un boost",
124
192
  "parameters": [
@@ -132,7 +200,20 @@
132
200
  }
133
201
  }
134
202
  ],
135
- "x-events": []
203
+ "x-events": [],
204
+ "responses": {
205
+ "200": {
206
+ "description": "Étape exécutée avec succès",
207
+ "content": {
208
+ "application/json": {
209
+ "schema": {
210
+ "type": "object",
211
+ "description": "Résultat de l'étape exécutée"
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
136
217
  }
137
218
  }
138
219
  },
@@ -140,7 +221,9 @@
140
221
  "schemas": {
141
222
  "Step": {
142
223
  "type": "object",
143
- "tags": ["boost"],
224
+ "tags": [
225
+ "boost"
226
+ ],
144
227
  "summary": "Etape",
145
228
  "properties": {
146
229
  "name": {
@@ -155,11 +238,16 @@
155
238
  }
156
239
  }
157
240
  },
158
- "required": ["name", "execute"]
241
+ "required": [
242
+ "name",
243
+ "execute"
244
+ ]
159
245
  },
160
246
  "Boost": {
161
247
  "type": "object",
162
- "tags": ["boost"],
248
+ "tags": [
249
+ "boost"
250
+ ],
163
251
  "summary": "Boost",
164
252
  "properties": {
165
253
  "prompt": {
@@ -188,7 +276,9 @@
188
276
  },
189
277
  "ContextParameter": {
190
278
  "type": "object",
191
- "tags": ["service"],
279
+ "tags": [
280
+ "service"
281
+ ],
192
282
  "summary": "Parametre de contexte",
193
283
  "properties": {
194
284
  "name": {
@@ -212,7 +302,12 @@
212
302
  "type": "string"
213
303
  }
214
304
  },
215
- "required": ["name", "summary", "required", "schema"]
305
+ "required": [
306
+ "name",
307
+ "summary",
308
+ "required",
309
+ "schema"
310
+ ]
216
311
  }
217
312
  }
218
313
  },
@@ -220,7 +315,10 @@
220
315
  "/boost": {
221
316
  "summary": "Boost",
222
317
  "description": "Boost proposé par le Digipair",
223
- "tags": ["boost", "service"],
318
+ "tags": [
319
+ "boost",
320
+ "service"
321
+ ],
224
322
  "metadata": [
225
323
  {
226
324
  "name": "standalone",
@@ -278,4 +376,4 @@
278
376
  ]
279
377
  }
280
378
  }
281
- }
379
+ }
package/schema.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/answer": {
12
12
  "post": {
13
- "tags": ["boost"],
13
+ "tags": [
14
+ "boost"
15
+ ],
14
16
  "summary": "Chatbot response",
15
17
  "parameters": [
16
18
  {
@@ -113,12 +115,78 @@
113
115
  }
114
116
  }
115
117
  ],
116
- "x-events": []
118
+ "x-events": [],
119
+ "responses": {
120
+ "200": {
121
+ "description": "Chatbot response prepared successfully",
122
+ "content": {
123
+ "application/json": {
124
+ "schema": {
125
+ "type": "object",
126
+ "properties": {
127
+ "assistant": {
128
+ "type": "string",
129
+ "description": "Assistant's response"
130
+ },
131
+ "command": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "object"
135
+ },
136
+ "description": "Prepared commands"
137
+ },
138
+ "boosts": {
139
+ "type": "array",
140
+ "items": {
141
+ "type": "object"
142
+ },
143
+ "description": "Available boosts"
144
+ },
145
+ "sources": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "object"
149
+ },
150
+ "description": "Source references"
151
+ },
152
+ "logs": {
153
+ "type": "object",
154
+ "description": "Debug logs"
155
+ },
156
+ "boost": {
157
+ "type": "object",
158
+ "nullable": true,
159
+ "description": "Boost configuration"
160
+ },
161
+ "parent_conversation": {
162
+ "type": "string",
163
+ "description": "Parent conversation ID"
164
+ },
165
+ "parent_history": {
166
+ "type": "string",
167
+ "description": "Parent message ID"
168
+ },
169
+ "session": {
170
+ "type": "string",
171
+ "description": "Session ID"
172
+ },
173
+ "uuid": {
174
+ "type": "string",
175
+ "description": "Message UUID"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
117
183
  }
118
184
  },
119
185
  "/execute": {
120
186
  "post": {
121
- "tags": ["boost"],
187
+ "tags": [
188
+ "boost"
189
+ ],
122
190
  "summary": "Execute a step",
123
191
  "description": "Execute a step of a boost",
124
192
  "parameters": [
@@ -132,7 +200,20 @@
132
200
  }
133
201
  }
134
202
  ],
135
- "x-events": []
203
+ "x-events": [],
204
+ "responses": {
205
+ "200": {
206
+ "description": "Step executed successfully",
207
+ "content": {
208
+ "application/json": {
209
+ "schema": {
210
+ "type": "object",
211
+ "description": "Result of the executed step"
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
136
217
  }
137
218
  }
138
219
  },
@@ -140,7 +221,9 @@
140
221
  "schemas": {
141
222
  "Step": {
142
223
  "type": "object",
143
- "tags": ["boost"],
224
+ "tags": [
225
+ "boost"
226
+ ],
144
227
  "summary": "Step",
145
228
  "properties": {
146
229
  "name": {
@@ -155,11 +238,16 @@
155
238
  }
156
239
  }
157
240
  },
158
- "required": ["name", "execute"]
241
+ "required": [
242
+ "name",
243
+ "execute"
244
+ ]
159
245
  },
160
246
  "Boost": {
161
247
  "type": "object",
162
- "tags": ["boost"],
248
+ "tags": [
249
+ "boost"
250
+ ],
163
251
  "summary": "Boost",
164
252
  "properties": {
165
253
  "prompt": {
@@ -188,7 +276,9 @@
188
276
  },
189
277
  "ContextParameter": {
190
278
  "type": "object",
191
- "tags": ["service"],
279
+ "tags": [
280
+ "service"
281
+ ],
192
282
  "summary": "Context Parameter",
193
283
  "properties": {
194
284
  "name": {
@@ -212,7 +302,12 @@
212
302
  "type": "string"
213
303
  }
214
304
  },
215
- "required": ["name", "summary", "required", "schema"]
305
+ "required": [
306
+ "name",
307
+ "summary",
308
+ "required",
309
+ "schema"
310
+ ]
216
311
  }
217
312
  }
218
313
  },
@@ -220,7 +315,10 @@
220
315
  "/boost": {
221
316
  "summary": "Boost",
222
317
  "description": "Boost proposed by Digipair",
223
- "tags": ["boost", "service"],
318
+ "tags": [
319
+ "boost",
320
+ "service"
321
+ ],
224
322
  "metadata": [
225
323
  {
226
324
  "name": "standalone",
@@ -278,4 +376,4 @@
278
376
  ]
279
377
  }
280
378
  }
281
- }
379
+ }