@langgraph-js/sdk 4.6.5 → 4.6.6
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
|
@@ -527,7 +527,7 @@ export class LangGraphClient extends EventEmitter {
|
|
|
527
527
|
this.tools.doneWaiting(tool_id, result);
|
|
528
528
|
if (this.humanInTheLoop) {
|
|
529
529
|
this.humanInTheLoop.result[action_request_id] = result;
|
|
530
|
-
if (Object.keys(this.humanInTheLoop.result).length === this.humanInTheLoop.interruptData
|
|
530
|
+
if (Object.keys(this.humanInTheLoop.result).length === this.humanInTheLoop.interruptData?.[0]?.value?.actionRequests?.length) {
|
|
531
531
|
setTimeout(() => {
|
|
532
532
|
if (this.forceSkipToolLock) {
|
|
533
533
|
console.warn("force kill tool lock");
|
package/package.json
CHANGED
package/src/LangGraphClient.ts
CHANGED
|
@@ -649,7 +649,7 @@ export class LangGraphClient<TStateType = unknown> extends EventEmitter<LangGrap
|
|
|
649
649
|
this.tools.doneWaiting(tool_id, result);
|
|
650
650
|
if (this.humanInTheLoop) {
|
|
651
651
|
this.humanInTheLoop.result[action_request_id] = result;
|
|
652
|
-
if (Object.keys(this.humanInTheLoop.result).length === this.humanInTheLoop.interruptData
|
|
652
|
+
if (Object.keys(this.humanInTheLoop.result).length === this.humanInTheLoop.interruptData?.[0]?.value?.actionRequests?.length) {
|
|
653
653
|
setTimeout(() => {
|
|
654
654
|
if (this.forceSkipToolLock) {
|
|
655
655
|
console.warn("force kill tool lock");
|