Rename saver to checkpointer, expose in graph, state graph, prebuilt agent exec

This commit is contained in:
Nuno Campos
2024-01-15 13:45:54 -08:00
parent 23f84c9ac9
commit 2e537320c3
6 changed files with 52 additions and 30 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ def test_invoke_checkpoint(mocker: MockerFixture) -> None:
app = Pregel(
nodes={"one": one},
channels={"total": BinaryOperatorAggregate(int, operator.add)},
saver=memory,
checkpointer=memory,
)
# total starts out as 0, so output is 0+2=2
+1 -1
View File
@@ -405,7 +405,7 @@ async def test_invoke_checkpoint(mocker: MockerFixture) -> None:
app = Pregel(
nodes={"one": one},
channels={"total": BinaryOperatorAggregate(int, operator.add)},
saver=memory,
checkpointer=memory,
)
# total starts out as 0, so output is 0+2=2