Adding telemetry and testharness code
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
(async () => {
|
||||
webdis().publish(recognizedObject.workspaceId, {
|
||||
conversationId: recognizedObject.conversationId,
|
||||
input: recognizedObject.input,
|
||||
answers: recognizedObject.answers,
|
||||
});
|
||||
})()
|
||||
.catch((error) => {
|
||||
console.log(error.message);
|
||||
recognizedObject.answers.push("");
|
||||
recognizedObject.errorInfo = {
|
||||
...recognizedObject.errorInfo,
|
||||
label: {
|
||||
data: error.toJSON ? error.toJSON() : {},
|
||||
message: error.message,
|
||||
},
|
||||
};
|
||||
})
|
||||
.finally(() => {
|
||||
next();
|
||||
});
|
||||
Reference in New Issue
Block a user