Thread
Threads enable the checkpointing of multiple different runs, making
them essential for multi-tenant chat applications and other scenarios
where maintaining separate states is necessary. A thread is a unique ID
assigned to a series of checkpoints saved by a checkpointer. When using
a checkpointer, you must specify a thread_id and optionally
checkpoint_id when running the graph.
thread_idis simply the ID of a thread. This is always required.checkpoint_idcan optionally be passed. This identifier refers to a specific checkpoint within a thread. This can be used to kick off a run of a graph from some point halfway through a thread.
You must pass these when invoking the graph as part of the configurable part of the config, e.g.
{"configurable": {"thread_id": "1"}} # valid config
{"configurable": {"thread_id": "1", "checkpoint_id": "0c62ca34-ac19-445d-bbb0-5b4984975b2a"}} # also valid config