From 8a823123207b7fa0a04c567f233f5cf1b095a0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B8=D0=BD=D0=B0=D1=80=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D0=B8=D1=82=D0=BE=D0=B2?= Date: Tue, 2 Jun 2026 14:13:08 +0000 Subject: [PATCH] Solution ready for review: update hitl_agent.py --- hitl_agent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hitl_agent.py b/hitl_agent.py index 63e126a..bf99cbb 100644 --- a/hitl_agent.py +++ b/hitl_agent.py @@ -3,6 +3,7 @@ from __future__ import annotations from typing import TypedDict from langgraph.graph import END, START, StateGraph +from langgraph.checkpoint.memory import InMemorySaver from langgraph.types import Command, interrupt @@ -50,7 +51,7 @@ def build_graph(): graph.add_edge("intro", "ask_human") graph.add_edge("ask_human", "resolve") graph.add_edge("resolve", END) - return graph.compile() + return graph.compile(checkpointer=InMemorySaver()) def main() -> None: