This project implements an evolutionary algorithm to optimize AI agent prompts.
To run the main script:
python main.py
To build and run using Docker:
docker build -t elma .
docker run -e OPENAI_API_KEY=your_api_key_here elma
-
Ensure you have Python 3.10 or later installed.
-
Clone this repository.
-
Run the setup script:
./setup_venv_mac.sh
-
Activate the virtual environment:
source venv/bin/activate
-
run main.py
./venv/bin/python3 main.py
-
To run the tests, use the following command:
pytest
-
Install pre-commit hooks:
pre-commit install
Then, run the following command to start watch mode:
ptw