@onereach/step-voice 7.0.30-VOIC1729functionstotools.0 → 7.0.31

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.
@@ -297,7 +297,13 @@ class VoiceAgent extends voice_1.default {
297
297
  if (!Array.isArray(systemTools)) {
298
298
  this.throwError(new Error('Voice Agent: system_tools must be an array'));
299
299
  }
300
- return systemTools.filter(entry => entry != null && typeof entry === 'object');
300
+ return systemTools
301
+ .filter(entry => entry != null && typeof entry === 'object')
302
+ .filter((entry) => !lodash_1.default.isEmpty(entry.name))
303
+ .map((entry) => ({
304
+ ...entry,
305
+ description: lodash_1.default.isEmpty(entry.description) ? undefined : entry.description
306
+ }));
301
307
  }
302
308
  parseAgentServiceOptions(label, options) {
303
309
  if (options == null || options === '')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.30-VOIC1729functionstotools.0",
3
+ "version": "7.0.31",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",