Spaces:
Sleeping
Sleeping
File size: 400 Bytes
71a4d85 58617a7 71a4d85 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
from src.state.state import graphstate
from langgraph.graph import START, END, StateGraph
class BasicChatbotNodes:
def __init__(self, model):
self.llm = model
def process(self, state: graphstate):
return {"messages":
self.llm.invoke(state["messages"])}
|