@oscloudlab/vgen-agent-assistant 0.0.13 → 0.0.14
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/dist/vgen-agent-assistant.es.js +21 -17
- package/dist/vgen-agent-assistant.es.js.br +0 -0
- package/dist/vgen-agent-assistant.es.js.gz +0 -0
- package/dist/vgen-agent-assistant.umd.js +1 -1
- package/dist/vgen-agent-assistant.umd.js.br +0 -0
- package/dist/vgen-agent-assistant.umd.js.gz +0 -0
- package/package.json +1 -1
|
@@ -25710,26 +25710,30 @@ function sseForChat(config, events) {
|
|
|
25710
25710
|
} else if (eventType === "session_knowledge") {
|
|
25711
25711
|
sessionKnowledgeData = content2;
|
|
25712
25712
|
} else if (eventType === "qa_recommend") {
|
|
25713
|
-
const recommendData =
|
|
25714
|
-
|
|
25715
|
-
|
|
25716
|
-
|
|
25717
|
-
|
|
25718
|
-
if (recommendData[item].
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
|
|
25723
|
-
|
|
25724
|
-
|
|
25725
|
-
|
|
25726
|
-
|
|
25727
|
-
|
|
25713
|
+
const recommendData = content2;
|
|
25714
|
+
try {
|
|
25715
|
+
let recommendListData = [];
|
|
25716
|
+
let buttonListData = [];
|
|
25717
|
+
for (const item in recommendData) {
|
|
25718
|
+
if (recommendData[item].needed) {
|
|
25719
|
+
if (recommendData[item].type === "scene") {
|
|
25720
|
+
recommendListData.push({
|
|
25721
|
+
scene: item,
|
|
25722
|
+
topic: recommendData[item].topic
|
|
25723
|
+
});
|
|
25724
|
+
} else {
|
|
25725
|
+
buttonList.push({
|
|
25726
|
+
topic: recommendData[item].topic,
|
|
25727
|
+
action: recommendData[item].action
|
|
25728
|
+
});
|
|
25729
|
+
}
|
|
25728
25730
|
}
|
|
25729
25731
|
}
|
|
25732
|
+
recommendList = [...recommendList, ...recommendListData];
|
|
25733
|
+
buttonList = [...buttonList, ...buttonListData];
|
|
25734
|
+
} catch (error) {
|
|
25735
|
+
console.log(error);
|
|
25730
25736
|
}
|
|
25731
|
-
recommendList = [...recommendList, ...recommendListData];
|
|
25732
|
-
buttonList = [...buttonList, ...buttonListData];
|
|
25733
25737
|
} else if (eventType === "evaluation") {
|
|
25734
25738
|
evaluationData = content2;
|
|
25735
25739
|
} else if (eventType === "evaluation_question") {
|
|
Binary file
|
|
Binary file
|