mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-29 04:55:09 +02:00
For input checkpoint use filtered input writes in checkpoint metadata
- if we use the raw input we can end up saving keys that were actually ignored (because not one of the input keys), which is incosistent
This commit is contained in:
@@ -422,7 +422,7 @@ class PregelLoop:
|
||||
self.checkpointer_get_next_version,
|
||||
), "Can't write to SharedValues in graph input"
|
||||
# save input checkpoint
|
||||
self._put_checkpoint({"source": "input", "writes": self.input})
|
||||
self._put_checkpoint({"source": "input", "writes": dict(input_writes)})
|
||||
else:
|
||||
raise EmptyInputError(f"Received no input for {input_keys}")
|
||||
# done with input
|
||||
|
||||
Reference in New Issue
Block a user