-
I'm using CREATE TABLE IF NOT EXISTS checkpoints (
thread_id TEXT NOT NULL,
checkpoint_ns TEXT NOT NULL DEFAULT '',
checkpoint_id TEXT NOT NULL,
parent_checkpoint_id TEXT,
type TEXT,
checkpoint JSONB NOT NULL,
metadata JSONB NOT NULL DEFAULT '{}',
PRIMARY KEY (thread_id, checkpoint_ns, checkpoint_id) |
Beta Was this translation helpful? Give feedback.
Answered by
vbarda
Aug 13, 2024
Replies: 1 comment 1 reply
-
@jiwonmik |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jiwonmik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jiwonmik
checkpoint_ns
stands for checkpoint namespace -- it shows which graph the checkpoint originates from.""
means root graph, otherwise it's a "|"-separated path to a subgraph node. for example, if a parent graph has subgraph in a node calledchild
, thecheckpoint_ns
value for child checkpoints will bechild
as well. if achild
subgraph has agrandchild
subgraph node,checkpoint_ns
for grandchild checkpoints will bechild|grandchild