clex_llm
[!NOTE] Builds are currently broken for android mobiles, but we have no intention as of now to support it at this moment.
[!NOTE] See previous efforts at cpast_llm.
clex_llm is a tool designed to generate Clex language expressions from input formats and constraints using a language model. It simplifies the process of creating complex test cases by converting human-readable descriptions into formal Clex grammar representations.
Features
- Automated Clex Generation: Automatically generate Clex expressions based on input formats and constraints.
- Integration with Google Generative AI: Utilizes Google Generative AI for generating accurate and efficient Clex expressions.
Getting Started
Prerequisites
Ensure you have Rust installed on your machine. You can install Rust using rustup.
Installation
Clone the repository and navigate to the clex_llm
directory:
Usage
To use clex_llm
, you need to set up your Google Generative AI API key and run the tests:
GOOGLE_API_KEY="<api-key>"
Example
Here’s a complete example demonstrating how to use the clex_llm
module:
use ;
async