An open API service indexing awesome lists of open source software.

https://github.com/gptscript-ai/mysql


https://github.com/gptscript-ai/mysql

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# MYSQL Query

Since this example requires the ability to access a mysql database with loaded data, this document serves as a guide in how to set up a given environment so that the example can be run as provided.

## Prerequisites

- Python 3.x
- OpenAI API Key
- Access information to a MYSQL database

## Setting Environment Variables

| variable | example value |
| --------- | -------------------- |
| `DB_USER` | `root` |
| `DB_PASS` | `your_root_password` |
| `DB_HOST` | `127.0.0.1` |
| `DB_PORT` | `3306` |
| `DB_NAME` | `employees` |

## Examples

Examples of tool usage can be seen in the examples directory. The simple overview of the strucutre is the inclusion of the tool, and then providing the prompt to be answered.