This project involves setting up and running a system of agents to conduct SQL queries, write the output to a file, and plot graphs based on the data. We use Composio to set up the tools and OpenAI GPT-4-turbo to power the agents. Follow this guide to set up and run the project.

SQL Agent GitHub Repository

Explore the complete source code for the SQL Agent project. This repository contains all the necessary files and scripts to set up and run the SQL Agent system using Langchain and Composio.

1

Install the required dependencies

2

Imports and Environment Setup

In your JavaScript script, import the necessary libraries and set up your environment variables.

3

Initialize Composio ToolSet and Define Functions

Initialize the Composio ToolSet and define the functions for executing SQL queries and plotting graphs.

4

Define and Execute the Main Function

Create the main function to run the SQL Agent and execute it.

Putting it All Together