@langgraph-js/sdk 1.3.0 → 1.3.2
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/LangGraphClient.js
CHANGED
|
@@ -478,7 +478,7 @@ export class LangGraphClient extends Client {
|
|
|
478
478
|
this.graphMessages = [];
|
|
479
479
|
this.streamingMessage = [];
|
|
480
480
|
this.currentRun = undefined;
|
|
481
|
-
this.tools.
|
|
481
|
+
this.tools.clearWaiting();
|
|
482
482
|
this.emitStreamingUpdate({
|
|
483
483
|
type: "value",
|
|
484
484
|
data: {
|
package/dist/ToolManager.d.ts
CHANGED
package/dist/ToolManager.js
CHANGED
|
@@ -105,6 +105,8 @@ export const createChatStore = (initClientName, config, context = {}) => {
|
|
|
105
105
|
// console.log(event.data);
|
|
106
106
|
// 创建新流程时,默认为 __start__
|
|
107
107
|
currentNodeName.set("__start__");
|
|
108
|
+
if (event.type === "done")
|
|
109
|
+
loading.set(false);
|
|
108
110
|
// 创建新会话时,需要自动刷新历史面板
|
|
109
111
|
return refreshHistoryList();
|
|
110
112
|
}
|
package/package.json
CHANGED
package/src/LangGraphClient.ts
CHANGED
|
@@ -563,7 +563,7 @@ export class LangGraphClient extends Client {
|
|
|
563
563
|
this.graphMessages = [];
|
|
564
564
|
this.streamingMessage = [];
|
|
565
565
|
this.currentRun = undefined;
|
|
566
|
-
this.tools.
|
|
566
|
+
this.tools.clearWaiting();
|
|
567
567
|
this.emitStreamingUpdate({
|
|
568
568
|
type: "value",
|
|
569
569
|
data: {
|
package/src/ToolManager.ts
CHANGED