Spaces:
Sleeping
Sleeping
File size: 548 Bytes
6cbca40 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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())
|