@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.
- package/dst/Voice Agent.js +7 -1
- package/package.json +1 -1
package/dst/Voice Agent.js
CHANGED
|
@@ -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
|
|
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 === '')
|