This commit is contained in:
vbarda
2024-08-12 16:29:15 -04:00
parent 5033044587
commit 6d4cdc9456
+2 -2
View File
@@ -912,9 +912,9 @@ class Pregel(
# if being called as a node in another graph, always use values mode
stream_mode = ["values"]
if parent_checkpointer is not None and self.checkpointer is None:
if (interrupt_before or interrupt_after) and parent_checkpointer is not None and self.checkpointer is None:
raise ValueError(
"Missing checkpointer for subgraph. "
"Missing checkpointer for a subgraph with interrupts. "
"Please compile the subgraph graph with checkpointer=INHERIT_CHECKPOINTER (from langgraph.pregel import INHERIT_CHECKPOINTER)."
)