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.0rc3.tar.gz (80.0 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.0rc3-py3-none-any.whl (126.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for evotoolkit-1.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 ddcfa423f339140b0214c6aa16e100b0765f24b99edc5b32e509246f0e07e2d2
MD5 ea89a5b52776da630781306b769e7e35
BLAKE2b-256 5c47c9c89e5633fec16de0b50b2ab948cf9a15cb94fff60caf0f80284678f907

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for evotoolkit-1.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 9778555f027b6c645808f19cb56d007cec1b7da2a4ae0eafa6164444d5059df8
MD5 66324832cdf309559b990b5d5ae2a123
BLAKE2b-256 2c501e858e49d31931075c91b34e96a0e431c17b430f8256578a06b6de65a50a

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