From 6fb8a0d96c6584ff3dbdafee3e244fb92d18f2d9 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Fri, 1 Aug 2025 22:53:04 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/langgraph/langgraph/types.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libs/langgraph/langgraph/types.py b/libs/langgraph/langgraph/types.py index 5fbc304b7..b0d997063 100644 --- a/libs/langgraph/langgraph/types.py +++ b/libs/langgraph/langgraph/types.py @@ -103,6 +103,20 @@ else: _DC_KWARGS = {"frozen": True} +@dataclass(**_DC_KWARGS) +class PregelScratchpad: + step: int + stop: int + # call + call_counter: Callable[[], int] + # interrupt + interrupt_counter: Callable[[], int] + get_null_resume: Callable[[bool], Any] + resume: list[Any] + # subgraph + subgraph_counter: Callable[[], int] + + class RetryPolicy(NamedTuple): """Configuration for retrying nodes. @@ -524,3 +538,4 @@ def interrupt(value: Any) -> Any: ), ) ) +