diff --git a/docs/docs/concepts/human_in_the_loop.md b/docs/docs/concepts/human_in_the_loop.md index eabe5fe85..442a98b35 100644 --- a/docs/docs/concepts/human_in_the_loop.md +++ b/docs/docs/concepts/human_in_the_loop.md @@ -23,7 +23,7 @@ To review, edit, and approve tool calls in an agent or workflow, [use LangGraph' ## Key capabilities -* **Persistent execution state**: Interrupts use LangGraph's [persistence](../../concepts/persistence.md) layer, which saves the graph state, to indefinitely pause graph execution until you resume. This is possible because LangGraph checkpoints the graph state after each step, which allows the system to persist execution context and later resume the workflow, continuing from where it left off. This supports asynchronous human review or input without time constraints. +* **Persistent execution state**: Interrupts use LangGraph's [persistence](./persistence.md) layer, which saves the graph state, to indefinitely pause graph execution until you resume. This is possible because LangGraph checkpoints the graph state after each step, which allows the system to persist execution context and later resume the workflow, continuing from where it left off. This supports asynchronous human review or input without time constraints. There are two ways to pause a graph: diff --git a/libs/langgraph/langgraph/types.py b/libs/langgraph/langgraph/types.py index 867991b35..3dcc8f8dc 100644 --- a/libs/langgraph/langgraph/types.py +++ b/libs/langgraph/langgraph/types.py @@ -149,10 +149,25 @@ class Interrupt: """Information about an interrupt that occurred in a node. !!! version-added "Added in version 0.2.24." + + !!! version-changed "Changed in version v0.4.0" + * `interrupt_id` was introduced as a property + + !!! version-changed "Changed in version v0.6.0" + + The following attributes have been removed: + + * `ns` + * `when` + * `resumable` + * `interrupt_id`, deprecated in favor of `id` """ value: Any + """The value associated with the interrupt.""" + id: str + """The ID of the interrupt. Can be used to resume the interrupt directly.""" def __init__( self,