Skip to content

A Java library that allows you to integrate function generation using LLMs into your applications.

License

Notifications You must be signed in to change notification settings

gekiclaws/function-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

A Java library that allows you to integrate function generation using LLMs into your applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published