This repository provides tools to control and query the state of devices (lights and doors) in a room using MQTT. These tools are integrated with LangChain, LangGraph, LangServe, and Ollama to facilitate more complex workflows, natural language processing, and distributed task management.
Ensure that you have the necessary dependencies to run this system.
pip install -qU langgraph langchain-community langchain_ollama "langserve[server]" paho-mqtt
Make sure you have an MQTT broker set up and connected to the devices you want to control or query.
You can start the server by running the following command:
python app.py
This project is licensed under the MIT License.
This project was inspired and built upon the following resources: