https://github.com/davramenko89/langchain-sqlagent-app
Simple Next.js App to experience Langchain SQL tool + Langgraph React Agent
https://github.com/davramenko89/langchain-sqlagent-app
chatgpt langchain langgraph nextjs
Last synced: about 1 year ago
JSON representation
Simple Next.js App to experience Langchain SQL tool + Langgraph React Agent
- Host: GitHub
- URL: https://github.com/davramenko89/langchain-sqlagent-app
- Owner: davramenko89
- Created: 2025-04-01T04:00:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T20:38:09.000Z (about 1 year ago)
- Last Synced: 2025-04-11T01:54:39.450Z (about 1 year ago)
- Topics: chatgpt, langchain, langgraph, nextjs
- Language: TypeScript
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Langchain SQL Agent App
This project is a Next.js application that integrates a SQL agent using Langchain. It allows users to interact with a SQL database through a user-friendly interface.
## Project Structure
```
my-langchain-sqlagent-app
├── components
│ └── AgentUI.tsx # UI component for interacting with the SQL agent
├── lib
│ └── sqlAgent.ts # Logic for SQL database interactions
├── pages
│ ├── api
│ │ └── sqlAgent.ts # API route for SQL agent requests
│ └── index.tsx # Main page component
├── public
│ └── favicon.ico # Application favicon
├── package.json # npm configuration file
├── tsconfig.json # TypeScript configuration file
└── README.md # Project documentation
```
## Features
- **User Interface**: The `AgentUI` component provides an interface for users to input SQL queries and view results.
- **SQL Agent Logic**: The `SqlAgent` class handles database connections and query execution.
- **API Integration**: The API route processes user requests and communicates with the SQL agent.
## Getting Started
1. Clone the repository:
```
git clone https://github.com/yourusername/my-langchain-sqlagent-app.git
```
2. Navigate to the project directory:
```
cd my-langchain-sqlagent-app
```
3. Install dependencies:
```
npm install
```
4. Run the application:
```
npm run dev
```
5. Open your browser and go to `http://localhost:3000` to access the application.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
## License
This project is licensed under the MIT License. See the LICENSE file for details.