Spaces:
Sleeping
Sleeping
File size: 507 Bytes
172064c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from langgraph.graph import StateGraph, START, END
from src.config.llm import llm_2_0
from .func import State
from langgraph.graph.state import CompiledStateGraph
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()
|