Configuration for the built-in checkpointer, which handles checkpointing of state.
If omitted, no checkpointer is set up (the object store will still be present, however).
CheckpointerConfig()| Name | Type |
|---|---|
| path | str |
| ttl | ThreadTTLConfig | None |
| serde | SerdeConfig | None |
Import path to an async context manager that yields a BaseCheckpointSaver
instance.
The referenced object should be an @asynccontextmanager-decorated function
so that the server can properly manage the checkpointer's lifecycle (e.g.
opening and closing connections).
Examples:
When provided, this replaces the default checkpointer.
You can use the langgraph-checkpoint-conformance package
(https://pypi.org/project/langgraph-checkpoint-conformance/) to run simple
conformance tests against your custom checkpointer and catch
incompatibilities early.
Optional. Defines the TTL (time-to-live) behavior configuration.
If provided, the checkpointer will apply TTL settings according to the configuration. If omitted, no TTL behavior is configured.
Optional. Defines the serde configuration.
If provided, the checkpointer will apply serde settings according to the configuration. If omitted, no serde behavior is configured.
This configuration requires server version 0.5 or later to take effect.