@tiledesk/tiledesk-tybot-connector 0.2.146-rc1 → 0.2.147
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/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,12 @@ available on:
|
|
|
17
17
|
- Added flowError on JSONCondition when result = null
|
|
18
18
|
- Added fix on Filler -->
|
|
19
19
|
|
|
20
|
+
# v0.2.147
|
|
21
|
+
- bug-fixed: namespace is undefined and "engine" property cannot be evaluated in DirAskGPTV2
|
|
22
|
+
|
|
23
|
+
# v0.2.146
|
|
24
|
+
- bug-fixed: message.attributes["flowAttributes"]
|
|
25
|
+
|
|
20
26
|
# v0.2.146-rc1
|
|
21
27
|
- bug-fixed: message.attributes["flowAttributes"] added only if value size is <= 1kb
|
|
22
28
|
|
package/package.json
CHANGED
|
@@ -181,15 +181,20 @@ class DirAskGPTV2 {
|
|
|
181
181
|
// Namespace could be an attribute
|
|
182
182
|
const filled_namespace = filler.fill(action.namespace, requestVariables)
|
|
183
183
|
ns = await this.getNamespace(filled_namespace, null);
|
|
184
|
-
namespace = ns
|
|
184
|
+
namespace = ns?.id;
|
|
185
185
|
if (this.log) { console.log("DirAskGPT - Retrieved namespace id from name ", namespace); }
|
|
186
186
|
} else {
|
|
187
187
|
ns = await this.getNamespace(null, namespace);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
if (!ns) {
|
|
191
|
-
await this
|
|
191
|
+
await this.#assignAttributes(action, answer);
|
|
192
|
+
await this.chatbot.addParameter("flowError", "AskGPT Error: namespace not found");
|
|
193
|
+
if (falseIntent) {
|
|
192
194
|
await this.#executeCondition(false, trueIntent, trueIntentAttributes, falseIntent, falseIntentAttributes);
|
|
195
|
+
callback(true);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
193
198
|
}
|
|
194
199
|
|
|
195
200
|
if (ns.engine) {
|