wingbot 3.74.2 → 3.74.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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npx mocha:*)"
5
+ ]
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.74.2",
3
+ "version": "3.74.4",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
package/src/LLM.js CHANGED
@@ -188,6 +188,13 @@ const LLMSession = require('./LLMSession');
188
188
  * @property {number} nearestNeighbourCount
189
189
  * @property {VectorSearchDocument[]} resultDocuments
190
190
  */
191
+
192
+ /**
193
+ * @typedef {object} LLMConfiguration
194
+ * @property {LLMChatProvider} provider
195
+ * @property {boolean} [disableLLM]
196
+ */
197
+
191
198
  /**
192
199
  * @class LLM
193
200
  */
@@ -240,13 +247,13 @@ class LLM {
240
247
  transcriptLength = 5,
241
248
  transcriptAnonymize = false,
242
249
  model = null,
250
+ disableLLM,
243
251
  ...rest
244
252
  } = configuration;
245
253
 
246
254
  this._configuration = {
247
- transcriptFlag: null,
248
- transcriptLength: 5,
249
255
  provider: null,
256
+ disableLLM,
250
257
  logger: {
251
258
  logPrompt: () => {}
252
259
  },
@@ -303,8 +310,8 @@ class LLM {
303
310
  }
304
311
 
305
312
  /**
306
- * @deprecated
307
- * @returns {Omit<LLMGlobalConfig, 'provider'>}
313
+ *
314
+ * @returns {LLMConfiguration}
308
315
  */
309
316
  get configuration () {
310
317
  return this._configuration;
@@ -340,13 +347,13 @@ class LLM {
340
347
  };
341
348
  }
342
349
 
343
- // /**
344
- // *
345
- // * @param {Partial<LLMConfiguration>} override
346
- // */
347
- // setSessionConfig (override) {
348
- // Object.assign(this._configuration, override);
349
- // }
350
+ /**
351
+ *
352
+ * @param {Partial<LLMConfiguration>} override
353
+ */
354
+ setSessionConfig (override) {
355
+ Object.assign(this._configuration, override);
356
+ }
350
357
 
351
358
  /**
352
359
  *
@@ -19,7 +19,7 @@ function expectedInput ({ type = null, confident = false, maxLength = null }, {
19
19
 
20
20
  if (confident) {
21
21
  res.expectedConfidentInput(type);
22
- } else if (type) {
22
+ } else if (type || useMaxLen) {
23
23
  res.expectedInput(type, opts);
24
24
  }
25
25