Skip to main content

LLM-driven code evolution method library.

Project description

EvoToolkit

Ask DeepWiki

LLM-driven solution evolutionary optimization toolkit

EvoToolkit is a Python library that leverages Large Language Models (LLMs) to evolve solutions for optimization problems. It combines the power of evolutionary algorithms with LLM-based solution generation and refinement.

Installation

pip install evotoolkit

Quick Start

import evotoolkit
from evotoolkit.task.python_task.scientific_regression import ScientificRegressionTask
from evotoolkit.task.python_task import EvoEngineerPythonInterface
from evotoolkit.tools import HttpsApi

# 1. Create a task
task = ScientificRegressionTask(dataset_name="bactgrow")

# 2. Create an interface
interface = EvoEngineerPythonInterface(task)

# 3. Solve with LLM
llm_api = HttpsApi(
    api_url="https://api.openai.com/v1/chat/completions",
    key="your-api-key-here",
    model="gpt-4o"
)
result = evotoolkit.solve(
    interface=interface,
    output_path='./results',
    running_llm=llm_api,
    max_generations=5
)

Features

  • 🤖 LLM-Driven Evolution: Use language models to generate and evolve solutions
  • 🔬 Multiple Algorithms: EoH, EvoEngineer, and FunSearch
  • 🌍 Task-Agnostic: Supports code, text, math expressions, etc.
  • 🎯 Extensible: Easy-to-extend task system
  • 🔌 Simple API: High-level evotoolkit.solve() function

Documentation

Full documentation: https://evotoolkit.readthedocs.io/

Citation

If you use EvoToolkit in your research, please cite:

@article{guo2025evotoolkit,
  title={evotoolkit: A Unified LLM-Driven Evolutionary Framework for Generalized Solution Search},
  author={Guo, Ping and Zhang, Qingfu},
  journal={arXiv preprint arXiv:XXXX.XXXXX},
  year={2025},
  note={Submitted to arXiv}
}

License

MIT License. For academic use, please cite our paper above.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evotoolkit-1.0.0rc5.tar.gz (161.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evotoolkit-1.0.0rc5-py3-none-any.whl (237.0 kB view details)

Uploaded Python 3

File details

Details for the file evotoolkit-1.0.0rc5.tar.gz.

File metadata

  • Download URL: evotoolkit-1.0.0rc5.tar.gz
  • Upload date:
  • Size: 161.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for evotoolkit-1.0.0rc5.tar.gz
Algorithm Hash digest
SHA256 4d42a7baced8e16ce74cde6750502425b5191e0b7f24398e870a6747e11784e5
MD5 b67d991f575405a21a2db1a928fb2bd6
BLAKE2b-256 c8c223e92c80537d11876b3e03c5c269abce217bee743600baf205c82eb47ad4

See more details on using hashes here.

File details

Details for the file evotoolkit-1.0.0rc5-py3-none-any.whl.

File metadata

  • Download URL: evotoolkit-1.0.0rc5-py3-none-any.whl
  • Upload date:
  • Size: 237.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for evotoolkit-1.0.0rc5-py3-none-any.whl
Algorithm Hash digest
SHA256 59a4c64cca70bead73e6dd96000b706f951bc95e16161e81bd7c891b98c8d7b1
MD5 b895d5d0b68f87eec9a8f7f16cd054f2
BLAKE2b-256 4bb8d311c4596eaabe23f9933b13145caa1885b6a1a826eb18964522386cd974

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page