List checkpoints from the database asynchronously.
This method retrieves a list of checkpoint tuples from the SQLite database based on the provided config. The checkpoints are ordered by checkpoint ID in descending order (newest first).
list(
self,
config: RunnableConfig | None,
*,
filter: dict[str, Any] | None = None,
before: RunnableConfig | None = None,
limit: int | None = None
) -> Iterator[CheckpointTuple]| Name | Type | Description |
|---|---|---|
config* | RunnableConfig | None | Base configuration for filtering checkpoints. |
filter | dict[str, Any] | None | Default: NoneAdditional filtering criteria for metadata. |
before | RunnableConfig | None | Default: NoneIf provided, only checkpoints before the specified checkpoint ID are returned. |
limit | int | None | Default: NoneMaximum number of checkpoints to return. |