CoolFace
Apppublic

swapy08/E2E-Agentic-AI

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
basic_chatbot_node.py15 linesDownload Raw Back to nodes
1from src.langgraphagenticai.state.state import State2 3 4class  BasicChatbotNode:5    def __init__(self, model):6        self.model = model7 8    def process(self, state: State) -> dict:9        """10        Processes the input state and generates a chatbot response.11        """12        msg = self.model.invoke(state["messages"]);13        return {"messages": msg}14    15