Result that can be pickled and sent between processes
| 23 | |
| 24 | @dataclass |
| 25 | class SerializableResult: |
| 26 | """Result that can be pickled and sent between processes""" |
| 27 | |
| 28 | child_program_dict: Optional[Dict[str, Any]] = None |
| 29 | parent_id: Optional[str] = None |
| 30 | iteration_time: float = 0.0 |
| 31 | prompt: Optional[Dict[str, str]] = None |
| 32 | llm_response: Optional[str] = None |
| 33 | artifacts: Optional[Dict[str, Any]] = None |
| 34 | iteration: int = 0 |
| 35 | error: Optional[str] = None |
| 36 | target_island: Optional[int] = None # Island where child should be placed |
| 37 | |
| 38 | |
| 39 | def _worker_init(config_dict: dict, evaluation_file: str, parent_env: dict = None) -> None: |
no outgoing calls