mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-26 01:22:24 +02:00
opt-in
This commit is contained in:
@@ -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)."
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user