Graph lifecycle callback interfaces and event payloads.
This module defines the public callback surface for observing LangGraph-specific lifecycle transitions such as interrupt and resume.
Build a sync graph lifecycle callback manager from a runnable config.
This helper filters config["callbacks"] down to handlers that inherit
from GraphCallbackHandler and binds the provided run_id onto the
returned manager.
Build an async graph lifecycle callback manager from a runnable config.
This helper filters config["callbacks"] down to handlers that inherit
from GraphCallbackHandler and binds the provided run_id onto the
returned manager.
Information about an interrupt that occurred in a node.
interrupt_id was introduced as a propertyThe following attributes have been removed:
nswhenresumableinterrupt_id, deprecated in favor of idGraph lifecycle event emitted when execution pauses for interrupts.
Graph lifecycle event emitted when execution resumes from a checkpoint.
Base class for graph-level lifecycle callbacks.
Subclass this handler to observe graph lifecycle transitions that are specific to LangGraph execution, rather than generic LangChain runnable callbacks.
Instances can be passed through config["callbacks"] when invoking a
graph. Only handlers that inherit from GraphCallbackHandler receive these
lifecycle events.
Allowed lifecycle statuses reported in graph lifecycle callback events.
Union of all public graph lifecycle callback event payloads.
Use this alias when a callback or helper can receive either interrupt or resume lifecycle events.