commit fed8d1ca2bc28594ac5a2b701d3c824355d050fb Author: Марат Фазылов Date: Mon May 11 19:48:12 2026 +0000 Add initial implementation for Human-in-the-loop interrupt/resume 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. +