Skip to content

About

LLM-powered API that turns natural language descriptions into executable functions. Describe what you want, add test cases or examples, and get back a function that does exactly that.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

AI Function Generator API

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.

Features

  • 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

Prerequisites

  • OpenAI API key (set as environment variable api_key)
  • Java Development Kit (JDK) 8 or higher
  • Apache Maven

Installation

  1. Clone the repository:

    git clone https://github.com/cmu-api-design/team1-f24
  2. Set the OpenAI API key as an environment variable:

    api_key=your_openai_api_key

Usage

config.ini setup

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.

Compile the Project

Make sure you're in the function-generator directory:

cd function-generator

To compile the project, run:

mvn compile

Generate Javadoc

To generate the Javadoc, run:

mvn javadoc:javadoc

About

LLM-powered API that turns natural language descriptions into executable functions. Describe what you want, add test cases or examples, and get back a function that does exactly that.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages