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.0rc6.tar.gz (186.3 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.0rc6-py3-none-any.whl (269.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for evotoolkit-1.0.0rc6.tar.gz
Algorithm Hash digest
SHA256 df610eb14ebab1c8a209fd3a18b120651eb17788d10c9e25c1246a579ce66157
MD5 72e6dc5cdd74651e903fcc6b123020d2
BLAKE2b-256 9d0ed5ef4b22462d6a9301c0ec122ae7e1571fc5e1b4a2d0cc4e962e8f4a260a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for evotoolkit-1.0.0rc6-py3-none-any.whl
Algorithm Hash digest
SHA256 5f49d0369c9773e9dc8e7a6926b03bd69dcd9d92336aa445b3c57d86819db97f
MD5 7cd1cfcb7f75bdb539bf7923700721e1
BLAKE2b-256 311d966fc7c094929f316f7631117b94c7365a9d67ad8ea1898dca435a55acbc

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