An intelligent agent that can automatically perform CRUD operations on a database using a custom REST API via simple messaging.
- Natural Language Interface: Chat with the agent to perform Create, Read, Update, and Delete operations on your database.
- Automatic API Integration: Connects to any REST API with an OpenAPI/Swagger specification.
- LangGraph: Modular, extensible agent logic for robust and explainable flows.
- Streamlit Web UI: Clean, interactive chat interface for seamless user experience.
- Django REST Server: Example project included for quick testing and demonstration.
The following diagram illustrates the agent's reasoning and execution flow:
- Agent Framework: LangGraph
- Web Interface: Streamlit
- LLM: Mistral
- REST API: Django REST & Swagger
-
Clone the repository:
git clone https://github.com/Armaan457/CRUD-Agent.git
-
Create and activate a virtual environment:
python -m venv env env\scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run the API server:
cd foods python manage.py runserver -
Run the app:
streamlit run app.py
For demonstration, REST APIs are provided for CRUD operations on a SQL database in the Django project foods.
