Spaces:
Build error
Build error
File size: 393 Bytes
42b1b7d cf4e043 42b1b7d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from src.langgraphagenticai.state.state import State
class BasicChatbotNode:
"""
Basic chatbot logic implementation.
"""
def __init__(self,model):
self.llm = model
def process(self,state):
"""
Processes the input state and generate the chatbot response
"""
return {"messages":[self.llm.invoke(state["messages"])]}
|