Download src/Langgraph_Agentic_AI/nodes/basic_chatbot_node.py from xonic48/agenticai: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/spaces/xonic48/agenticai/resolve/main/src/Langgraph_Agentic_AI/nodes/basic_chatbot_node.py
- Command line
-
hf download hf://spaces/xonic48/agenticai/src/Langgraph_Agentic_AI/nodes/basic_chatbot_node.py
-
curl -L -o basic_chatbot_node.py https://huggingface.co/spaces/xonic48/agenticai/resolve/main/src/Langgraph_Agentic_AI/nodes/basic_chatbot_node.py
392 Bytes
| 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'])} | |