agenticai / src /Langgraph_Agentic_AI /nodes /basic_chatbot_node.py
xonic48's picture
update
ecf7f5f
from src.Langgraph_Agentic_AI.state.state import State
class BasicChatbotNode:
"""
Basic chatbot logic 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'])}