API Reference¶
Code-as-config classes¶
rayevolve.core.common
¶
rayevolve.core.common.BackendConfig
dataclass
¶
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. |
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.