checkpoint-postgres: new library for postgres checkpointer implementation (#1236)

* checkpoint-postgres: new library for postgres checkpointer implementation

---------

Co-authored-by: Nuno Campos <nuno@langchain.dev>
This commit is contained in:
Vadym Barda
2024-08-06 22:37:06 -04:00
committed by GitHub
co-authored by Nuno Campos
parent 81e60893b6
commit b37f78942d
34 changed files with 2665 additions and 195 deletions
+3 -3
View File
@@ -60,9 +60,9 @@ class TestSqliteSaver:
with SqliteSaver.from_conn_string(":memory:") as saver:
# set up test
# save checkpoints
saver.put(self.config_1, self.chkpnt_1, self.metadata_1)
saver.put(self.config_2, self.chkpnt_2, self.metadata_2)
saver.put(self.config_3, self.chkpnt_3, self.metadata_3)
saver.put(self.config_1, self.chkpnt_1, self.metadata_1, {})
saver.put(self.config_2, self.chkpnt_2, self.metadata_2, {})
saver.put(self.config_3, self.chkpnt_3, self.metadata_3, {})
# call method / assertions
query_1: CheckpointMetadata = {"source": "input"} # search by 1 key