fix(langgraph): add support for new interrupt ID (#1448)

This commit is contained in:
David Duong
2025-07-26 01:23:13 +02:00
committed by GitHub
parent ab150e485c
commit 034730ff52
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@langchain/langgraph": patch
---
fix(langgraph): add support for new interrupt ID
+5 -1
View File
@@ -304,7 +304,11 @@ export class RemoteGraph<
id: task.id,
name: task.name,
error: task.error ? { message: task.error } : undefined,
interrupts: task.interrupts,
// TODO: remove in LangGraph.js 0.4
interrupts: task.interrupts.map(({ id, ...rest }) => ({
interrupt_id: id,
...rest,
})),
// eslint-disable-next-line no-nested-ternary
state: task.state
? this._createStateSnapshot(task.state)