Skip to content

API Reference

Code-as-config classes

rayevolve.core.common

rayevolve.core.common.BackendConfig dataclass

Configuration for script execution.

Attributes:

Name Type Description
timeout_sec int

Optional timeout in seconds for script execution. If None, no timeout is applied

extra_cmd_args Dict[str, Any]

Optional dictionary of extra command-line arguments to pass to the evaluation script.

rayevolve.core.common.EvolutionConfig dataclass

Configuration for rayevolve run.

Attributes:

Name Type Description
results_dir Optional[str]

Optional path to save results. If None, a timestamped folder will be created.

task_sys_msg str

Optional system message for the task.

num_agent_workers int

Number of agent workers to use.

max_generations int

Maximum number of program generations to evolve.

force_probing bool

Whether to force probing of evo block during multi-turn loop for EvoExplore/EvoExploit.

lang_identifier str

Language used for any LLM code blocks (e.g. python ...).

evo_file str

Name of the file to use for the evo block. Default is main.py.

dl_evostate_freq float

Frequency (in seconds) to download evo state from workers.

rayevolve.core.common.validate(cfg)

Validate the RayEvolveConfig object.