@digipair/skill-llm 0.96.0 → 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.
package/index.esm2.js CHANGED
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
23899
23899
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23900
23900
  // match is required
23901
23901
  if (!match) {
23902
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23902
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23903
23903
  v: nextMatch1
23904
23904
  };
23905
23905
  }
23906
23906
  var token = match.token, offset = match.offset;
23907
23907
  i1 += offset;
23908
23908
  if (token === " ") {
23909
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23909
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23910
23910
  }
23911
23911
  tokens1 = _to_consumable_array$D(tokens1).concat([
23912
23912
  token
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
23925
23925
  if (contextKeys.some(function(el) {
23926
23926
  return el.startsWith(name);
23927
23927
  })) {
23928
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23928
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23929
23929
  }
23930
23930
  if (dateTimeIdentifiers.some(function(el) {
23931
23931
  return el === name;
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
23944
23944
  if (dateTimeIdentifiers.some(function(el) {
23945
23945
  return el.startsWith(name);
23946
23946
  })) {
23947
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23947
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23948
23948
  }
23949
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23949
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.96.0",
3
+ "version": "0.97.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -34,7 +34,19 @@
34
34
  }
35
35
  }
36
36
  ],
37
- "x-events": []
37
+ "x-events": [],
38
+ "responses": {
39
+ "200": {
40
+ "description": "Résultat de l'exécution de la chaîne de raisonnement LLM",
41
+ "content": {
42
+ "application/json": {
43
+ "schema": {
44
+ "description": "Le résultat peut être de n'importe quel type selon les étapes exécutées dans la chaîne"
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
38
50
  }
39
51
  },
40
52
  "/reasoningStep": {
@@ -55,7 +67,24 @@
55
67
  }
56
68
  }
57
69
  ],
58
- "x-events": []
70
+ "x-events": [],
71
+ "responses": {
72
+ "200": {
73
+ "description": "Objet contenant les fonctions d'étapes de raisonnement mappées aux noms d'attributs",
74
+ "content": {
75
+ "application/json": {
76
+ "schema": {
77
+ "type": "object",
78
+ "description": "Objet avec des clés correspondant aux noms d'attributs et des valeurs comme fonctions asynchrones",
79
+ "additionalProperties": {
80
+ "type": "object",
81
+ "description": "Fonction asynchrone qui peut être appelée avec le contexte précédent"
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
59
88
  }
60
89
  },
61
90
  "/basic": {
@@ -95,7 +124,28 @@
95
124
  }
96
125
  }
97
126
  ],
98
- "x-events": []
127
+ "x-events": [],
128
+ "responses": {
129
+ "200": {
130
+ "description": "Réponse générée par le modèle LLM - texte ou données structurées selon le paramètre schema",
131
+ "content": {
132
+ "application/json": {
133
+ "schema": {
134
+ "oneOf": [
135
+ {
136
+ "type": "string",
137
+ "description": "Réponse textuelle générée quand aucun schéma n'est fourni"
138
+ },
139
+ {
140
+ "type": "object",
141
+ "description": "Objet JSON structuré correspondant au schéma fourni quand le paramètre schema est utilisé"
142
+ }
143
+ ]
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
99
149
  }
100
150
  },
101
151
  "/vision": {
@@ -144,7 +194,28 @@
144
194
  }
145
195
  }
146
196
  ],
147
- "x-events": []
197
+ "x-events": [],
198
+ "responses": {
199
+ "200": {
200
+ "description": "Réponse du modèle de vision - texte ou données structurées basées sur le schéma et l'analyse d'image",
201
+ "content": {
202
+ "application/json": {
203
+ "schema": {
204
+ "oneOf": [
205
+ {
206
+ "type": "string",
207
+ "description": "Description textuelle générée de l'image quand aucun schéma n'est fourni"
208
+ },
209
+ {
210
+ "type": "object",
211
+ "description": "Objet JSON structuré avec les résultats d'analyse d'image correspondant au schéma fourni quand le paramètre schema est utilisé"
212
+ }
213
+ ]
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
148
219
  }
149
220
  },
150
221
  "/summarization": {
@@ -247,7 +318,20 @@
247
318
  }
248
319
  }
249
320
  ],
250
- "x-events": []
321
+ "x-events": [],
322
+ "responses": {
323
+ "200": {
324
+ "description": "Texte résumé généré par le modèle LLM",
325
+ "content": {
326
+ "application/json": {
327
+ "schema": {
328
+ "type": "string",
329
+ "description": "Résumé condensé du texte du document d'entrée"
330
+ }
331
+ }
332
+ }
333
+ }
334
+ }
251
335
  }
252
336
  }
253
337
  },
package/schema.json CHANGED
@@ -34,7 +34,19 @@
34
34
  }
35
35
  }
36
36
  ],
37
- "x-events": []
37
+ "x-events": [],
38
+ "responses": {
39
+ "200": {
40
+ "description": "Result of the LLM reasoning chain execution",
41
+ "content": {
42
+ "application/json": {
43
+ "schema": {
44
+ "description": "The result can be any type depending on the executed chain steps"
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
38
50
  }
39
51
  },
40
52
  "/reasoningStep": {
@@ -55,7 +67,24 @@
55
67
  }
56
68
  }
57
69
  ],
58
- "x-events": []
70
+ "x-events": [],
71
+ "responses": {
72
+ "200": {
73
+ "description": "Object containing reasoning step functions mapped to attribute names",
74
+ "content": {
75
+ "application/json": {
76
+ "schema": {
77
+ "type": "object",
78
+ "description": "Object with keys corresponding to attribute names and values as async functions",
79
+ "additionalProperties": {
80
+ "type": "object",
81
+ "description": "Async function that can be called with previous context"
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
59
88
  }
60
89
  },
61
90
  "/basic": {
@@ -95,7 +124,28 @@
95
124
  }
96
125
  }
97
126
  ],
98
- "x-events": []
127
+ "x-events": [],
128
+ "responses": {
129
+ "200": {
130
+ "description": "LLM-generated response - text or structured data based on schema parameter",
131
+ "content": {
132
+ "application/json": {
133
+ "schema": {
134
+ "oneOf": [
135
+ {
136
+ "type": "string",
137
+ "description": "Generated text response when no schema is provided"
138
+ },
139
+ {
140
+ "type": "object",
141
+ "description": "Structured JSON object matching the provided schema when schema parameter is used"
142
+ }
143
+ ]
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
99
149
  }
100
150
  },
101
151
  "/vision": {
@@ -144,7 +194,28 @@
144
194
  }
145
195
  }
146
196
  ],
147
- "x-events": []
197
+ "x-events": [],
198
+ "responses": {
199
+ "200": {
200
+ "description": "Vision model response - text or structured data based on schema and image analysis",
201
+ "content": {
202
+ "application/json": {
203
+ "schema": {
204
+ "oneOf": [
205
+ {
206
+ "type": "string",
207
+ "description": "Generated text description of the image when no schema is provided"
208
+ },
209
+ {
210
+ "type": "object",
211
+ "description": "Structured JSON object with image analysis results matching the provided schema when schema parameter is used"
212
+ }
213
+ ]
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
148
219
  }
149
220
  },
150
221
  "/summarization": {
@@ -247,7 +318,20 @@
247
318
  }
248
319
  }
249
320
  ],
250
- "x-events": []
321
+ "x-events": [],
322
+ "responses": {
323
+ "200": {
324
+ "description": "Summarized text generated by the LLM model",
325
+ "content": {
326
+ "application/json": {
327
+ "schema": {
328
+ "type": "string",
329
+ "description": "Condensed summary of the input document text"
330
+ }
331
+ }
332
+ }
333
+ }
334
+ }
251
335
  }
252
336
  }
253
337
  },