ProgramRunOutputTrigger

Enums · AiDotNet.Enums

Says what caused a best-program snapshot to be written to disk.

For Beginners

The best program found so far gets saved periodically during the run and once more when the run ends. This says which of those two a particular saved file came from, so you can tell a mid-run snapshot from the final answer.

How It Works

The reference OpenEvolve controller writes the best program twice over a run’s lifetime and in two different places: _save_checkpoint writes it into the checkpoint directory it just created, and _save_best_program writes it into a single best/ directory when the run finishes. The two carry slightly different metadata - the checkpoint copy records which iteration it was taken at, the final copy records the parent program - so a reader needs to know which one is in front of it.

Fields

Field Summary
ProgramRunOutputTrigger Checkpoint Written alongside a checkpoint, as a snapshot of the best program at that point.
ProgramRunOutputTrigger Manual Written because a caller asked for it directly rather than in response to a run event.
ProgramRunOutputTrigger RunEnd Written when the run stopped, as the run’s final answer.
int value__