AI Function Generator API is a Java library that simplifies the integration of LLMs into your applications. It allows you to create AI-powered functions using natural language descriptions, test classes, or simulated scenarios.
- Generate functions using natural language descriptions
- Define functions through test classes
- Generate functions from simulated scenarios
- Type-safe function inputs and outputs
- Comprehensive error handling
- OpenAI API key (set as environment variable
api_key
) - Java Development Kit (JDK) 8 or higher
- Apache Maven
-
Clone the repository:
git clone https://github.com/cmu-api-design/team1-f24
-
Set the OpenAI API key as an environment variable:
api_key=your_openai_api_key
Make a copy of the config.ini.sample file and replace with your own credentials. Then rename the file to 'config.ini'. Make sure the config.ini file is in the root directory.
Make sure you're in the function-generator directory:
cd function-generator
To compile the project, run:
mvn compile
To generate the Javadoc, run:
mvn javadoc:javadoc