mirror of
https://github.com/langchain-ai/langgraphjs.git
synced 2026-07-23 09:35:22 -04:00
fix(langgraph): add support for new interrupt ID (#1448)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@langchain/langgraph": patch
|
||||
---
|
||||
|
||||
fix(langgraph): add support for new interrupt ID
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user