filter on checkpoint NS

This commit is contained in:
vbarda
2024-08-26 19:26:35 -04:00
parent bf4dc5d5f6
commit 85e698e20b
5 changed files with 145 additions and 286 deletions
@@ -70,6 +70,10 @@ def search_where(
if config is not None:
wheres.append("thread_id = ?")
param_values.append(config["configurable"]["thread_id"])
if checkpoint_ns := config["configurable"].get("checkpoint_ns"):
wheres.append("checkpoint_ns = ?")
param_values.append(checkpoint_ns)
if checkpoint_id := get_checkpoint_id(config):
wheres.append("checkpoint_id = ?")
param_values.append(checkpoint_id)