ABAO77's picture
base: first commit
87eb6f6
raw
history blame contribute delete
548 Bytes
from langgraph.graph import StateGraph, START, END
from .func import State
from langgraph.graph.state import CompiledStateGraph
from langgraph.store.memory import InMemoryStore
class PrimaryChatBot:
def __init__(self):
self.builder = StateGraph(State)
@staticmethod
def routing(state: State):
pass
def node(self):
pass
def edge(self):
pass
def __call__(self) -> CompiledStateGraph:
self.node()
self.edge()
return self.builder.compile(checkpointer=InMemoryStore())