docs(langgraph): document StateGraph.set_node_defaults() on fault-tolerance#3974
Draft
open-swe[bot] wants to merge 4 commits into
Draft
docs(langgraph): document StateGraph.set_node_defaults() on fault-tolerance#3974open-swe[bot] wants to merge 4 commits into
open-swe[bot] wants to merge 4 commits into
Conversation
…erance page Adds a 'Graph-wide defaults' section covering the new fluent StateGraph.set_node_defaults() builder method from langchain-ai/langgraph#7747, including the supported kwargs and the rules for which defaults apply to error-handler nodes. Also registers 'set_node_defaults' in the API link map so @[`set_node_defaults`] resolves. Co-authored-by: Quanzheng Long <4523955+longquanzheng@users.noreply.github.com>
…antics Adds two pointers to the Error handling section's 'Resume-safe failures' subsection: - The handler transition is atomic at the superstep boundary: the original node's error write is committed and the handler is scheduled in the same step. The failing node is never re-executed once the error-handling phase has begun. - Handler crashes resume safely: if the handler itself raises and a checkpointer is configured, resuming re-schedules the handler, not the original failing node. Co-authored-by: Quanzheng Long <4523955+longquanzheng@users.noreply.github.com>
Broaden the handler-resume pointer to cover host process crashes mid-handler, not just handler-raised exceptions. Co-authored-by: Quanzheng Long <4523955+longquanzheng@users.noreply.github.com>
Contributor
|
Mintlify preview branch generated: Site preview: https://langchain-5e9cc07a-preview-opensw-1778611447-4ebee5c.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.
Description
Documents the new fluent
StateGraph.set_node_defaults()builder method shipped in langchain-ai/langgraph#7747. Adds a new Graph-wide defaults section to the fault-tolerance page covering supported kwargs (retry_policy,timeout,cache_policy,error_handler), the override precedence rule, and which defaults apply to error-handler nodes. Also registersset_node_defaultsin the API link map.Release Note
Document
StateGraph.set_node_defaults()for configuring graph-wide retry, timeout, cache, and error-handler defaults.Test Plan
@[\set_node_defaults`]` link resolves to the published API reference once the langgraph release containing #7747 is live.Opened collaboratively by Quanzheng Long and open-swe.