docs: add custom checkpointer implementation guide with delta channel support#4163
Open
Sydney Runkle (sydney-runkle) wants to merge 1 commit into
Open
docs: add custom checkpointer implementation guide with delta channel support#4163Sydney Runkle (sydney-runkle) wants to merge 1 commit into
Sydney Runkle (sydney-runkle) wants to merge 1 commit into
Conversation
… support Adds src/oss/python/integrations/checkpointers/build-custom.mdx covering the full BaseCheckpointSaver contract, row key design, serialization requirements, and a dedicated section on DeltaChannel support (what get_delta_channel_history does, the default walk, a performance override pattern, and pruning/copy-thread caveats). Updates the checkpointers integrations index and langsmith/custom-checkpointer pages to link to the new guide. Adds the page to docs.json navigation as a sub-group under Checkpointers.
Contributor
|
Thanks for opening a docs PR, Sydney Runkle (@sydney-runkle)! When it's ready for review, please add the relevant reviewers:
|
Contributor
|
Mintlify preview branch generated: Site preview: https://langchain-5e9cc07a-preview-srcust-1779804026-9564889.mintlify.app Preview links may take a few minutes to start working while the deployment finishes. Changed documentation pages (preview deep links): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/oss/python/integrations/checkpointers/build-custom.mdx— a new implementation guide covering the fullBaseCheckpointSavercontract, row key / index design, serialization requirements, and a dedicated delta channel support sectionget_delta_channel_historydefault walk (and whyget_tuple(by-id)must be correct), a performance-override pattern, and pruning / copy-thread caveatscheckpointers/index.mdxandlangsmith/custom-checkpointer.mdxto link to the new guidedocs.jsonto a sub-group with both the index and the new build pageMotivation
Surfaced from a customer support case: a custom Bigtable checkpointer was silently producing empty delta channel state. Root cause was a pre-existing
get_tuple(by-id)bug that delta channels promoted from "only hit during time travel" to "hit on every graph load." No docs existed explaining what theget_tuplespecific-id path is required for, or what delta channels need from a checkpointer.Test plan
langgraph.checkpoint.base.BaseCheckpointSaver/oss/python/integrations/checkpointers/build-custom,/langsmith/custom-checkpointer, and/oss/langgraph/persistenceresolve