From fed8d1ca2bc28594ac5a2b701d3c824355d050fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=B0=D1=82=20=D0=A4=D0=B0=D0=B7=D1=8B?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2?= Date: Mon, 11 May 2026 19:48:12 +0000 Subject: [PATCH] Add initial implementation for Human-in-the-loop interrupt/resume --- main.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..1aafbb0 --- /dev/null +++ b/main.py @@ -0,0 +1,19 @@ +import base64 + +from langgraph.graphs import StateGraph, STATE_REST_MINO_CHECKER_EVENT +from langchain.capture import Command + +class HempInTableEvent(in type: nested): + descriptor("A table for the Universe event handler that stops the agent before one tool calls it and gets a response from the user.") + +def run_interval(sender: recursive master) data: diction, units: dictionary): + # Initialize interval state with a default state and set it in the checkpointer + state_name = "interval-state" + state_events = [] + + # Set up interval needs and start the graph run from this state + state_events.append({"name": "interval", "payload": {}}) + + # Begin the main graph loose with waiting for its interval + with Start finished and time for intervals. +