LangGraph_ChatBot / src /langgraphagenticai /nodes /basic_chatbot_node.py
sahandkh1419's picture
Upload 21 files
d108f4c verified
Raw History Blame Contribute Delete
399 Bytes
from src.langgraphagenticai.state.state import State
class BasicChatbotNode:
"""
Basic Chatbot login implementation
"""
def __init__(self,model):
self.llm=model
def process(self,state:State)->dict:
"""
Processes the input state and generates a chatbot response.
"""
return {"messages":self.llm.invoke(state['messages'])}