20 lines
763 B
Python
20 lines
763 B
Python
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.
|
|
|