From 4079f3fdfa82f4c6f9d5b05f5f4d7d7ac58f47e6 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Wed, 30 Jul 2025 19:02:37 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/langgraph/langgraph/pregel/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/langgraph/langgraph/pregel/main.py b/libs/langgraph/langgraph/pregel/main.py index 27739def4..6e16cd77a 100644 --- a/libs/langgraph/langgraph/pregel/main.py +++ b/libs/langgraph/langgraph/pregel/main.py @@ -3071,6 +3071,7 @@ class Pregel( output_keys: str | Sequence[str] | None = None, interrupt_before: All | Sequence[str] | None = None, interrupt_after: All | Sequence[str] | None = None, + durability: Durability | None = None, **kwargs: Any, ) -> dict[str, Any] | Any: """Asynchronously invoke the graph on a single input. @@ -3085,6 +3086,10 @@ class Pregel( output_keys: Optional. The output keys to include in the result. Default is None. interrupt_before: Optional. The nodes to interrupt before. Default is None. interrupt_after: Optional. The nodes to interrupt after. Default is None. + durability: The durability mode for the graph execution, defaults to "async". Options are: + - `"sync"`: Changes are persisted synchronously before the next step starts. + - `"async"`: Changes are persisted asynchronously while the next step executes. + - `"exit"`: Changes are persisted only when the graph exits. **kwargs: Additional keyword arguments. Returns: