@pagelines/sdk 1.0.409 → 1.0.410
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.
|
@@ -233,6 +233,10 @@ Current User:
|
|
|
233
233
|
const n = this.sharedMessages.value;
|
|
234
234
|
this.sharedMessages.value = [...e.messages, ...n];
|
|
235
235
|
}
|
|
236
|
+
/** Reset conversation state so the next message starts a fresh server session. */
|
|
237
|
+
resetConversation() {
|
|
238
|
+
this.conversationId = `conv_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
|
|
239
|
+
}
|
|
236
240
|
async destroy() {
|
|
237
241
|
await this.endConversation();
|
|
238
242
|
}
|