Save a checkpoint to the database.
This method saves a checkpoint to the Postgres database. The checkpoint is associated with the provided config. For AsyncShallowPostgresSaver, this method saves ONLY the most recent checkpoint and overwrites a previous checkpoint, if it exists.
put(
self,
config: RunnableConfig,
checkpoint: Checkpoint,
metadata: CheckpointMetadata,
new_versions: ChannelVersions
) -> RunnableConfig| Name | Type | Description |
|---|---|---|
config* | RunnableConfig | The config to associate with the checkpoint. |
checkpoint* | Checkpoint | The checkpoint to save. |
metadata* | CheckpointMetadata | Additional metadata to save with the checkpoint. |
new_versions* | ChannelVersions | New channel versions as of this write. |