Solution ready for review: update hitl_agent.py

This commit is contained in:
2026-06-02 14:13:08 +00:00
parent 3619c80977
commit 8a82312320
+2 -1
View File
@@ -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: