@pagelines/sdk 1.0.862 → 1.0.864
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/AgentWrap.js +2 -2
- package/dist/AgentWrap.js.map +1 -1
- package/package.json +1 -1
package/dist/AgentWrap.js
CHANGED
|
@@ -951,8 +951,8 @@ Current User:
|
|
|
951
951
|
}
|
|
952
952
|
loadMessages(e) {
|
|
953
953
|
this.conversationId = e.conversationId;
|
|
954
|
-
let t = this.sharedMessages.value, n = e.messages.filter((e) => e.sender !== "agent" || !f(e.text));
|
|
955
|
-
this.sharedMessages.value = [...n, ...t], e.activeToolActivities?.length && (e.activeToolActivities.forEach((e) => this.rememberToolActivity(e)), this.updateState(this.textState, {
|
|
954
|
+
let t = this.sharedMessages.value, n = e.messages.filter((e) => e.sender !== "agent" || !f(e.text)), r = new Set(n.map((e) => e.id));
|
|
955
|
+
this.sharedMessages.value = [...n, ...t.filter((e) => !r.has(e.id))], e.activeToolActivities?.length && (e.activeToolActivities.forEach((e) => this.rememberToolActivity(e)), this.updateState(this.textState, {
|
|
956
956
|
isThinking: !0,
|
|
957
957
|
workingDescription: void 0,
|
|
958
958
|
toolActivities: e.activeToolActivities,
|