ProgramPromptFragmentKey

Enums · AiDotNet.Enums

Names one short, overridable phrase that prompt sections are assembled from.

For Beginners

Think of these as the stock phrases in a form letter. The letter’s layout comes from a template; the phrases are the parts that change depending on the situation, such as “Fitness improved” versus “Fitness declined”. You can replace any phrase with your own wording. Some phrases have blanks in them, written as {name}, which are filled in with real numbers when the prompt is built; if your replacement leaves out a blank the phrase needs, you are told right away.

How It Works

Fragments are the sentence-sized pieces a prompt builder chooses between: whether fitness improved or declined, what kind of example a program is, why an artifact section is present. Keeping them separate from the templates in ProgramPromptTemplateKey means wording can be adjusted or translated without touching the structure of the prompt.

The reference OpenEvolve implementation ships forty-one fragments in a JSON file, roughly ten of which no code path ever reads, and at least one of which (inspiration_changes_prefix) is formatted with a {changes} argument its text does not contain, so the change description is silently dropped from every prompt. This enumeration lists only fragments that are actually rendered, and every fragment’s placeholders are validated when the template set is built, so that class of silent loss cannot occur.

Fields

Field Summary
ProgramPromptFragmentKey ArtifactTitle The heading above the execution-output section.
ProgramPromptFragmentKey ArtifactTruncated Marks where an over-long artifact was cut.
ProgramPromptFragmentKey AttemptAllMetricsImproved Describes an attempt whose measured values all improved.
ProgramPromptFragmentKey AttemptAllMetricsRegressed Describes an attempt whose measured values all regressed.
ProgramPromptFragmentKey AttemptMixedMetrics Describes an attempt with both improvements and regressions.
ProgramPromptFragmentKey AttemptUnknownChanges Stands in for a missing description of what an attempt changed.
ProgramPromptFragmentKey CodeTooLong Suggests simplification once a program grows past a threshold.
ProgramPromptFragmentKey CoverageHint Points at nearby unoccupied archive cells worth reaching.
ProgramPromptFragmentKey DiverseProgramMetricsPrefix Introduces the measurements of a diverse program.
ProgramPromptFragmentKey DiverseProgramsTitle The heading above the diverse-programs section.
ProgramPromptFragmentKey ExploringRegion Names the region of the feature space being explored.
ProgramPromptFragmentKey FitnessDeclined Reports that fitness fell against the previous attempt.
ProgramPromptFragmentKey FitnessImproved Reports that fitness rose against the previous attempt.
ProgramPromptFragmentKey FitnessStable Reports that fitness is unchanged.
ProgramPromptFragmentKey InspirationChangesPrefix Introduces an inspiration’s change description.
ProgramPromptFragmentKey InspirationComprehensiveImplementation Labels an example long enough to count as a comprehensive implementation.
ProgramPromptFragmentKey InspirationConciseImplementation Labels an example short enough to count as a concise implementation.
ProgramPromptFragmentKey InspirationMetricsAlternative Highlights a measurement where the program takes a different route.
ProgramPromptFragmentKey InspirationMetricsExcellent Highlights an unusually strong measurement.
ProgramPromptFragmentKey InspirationNoFeatures The fallback description of an inspiration with no standout features.
ProgramPromptFragmentKey InspirationTypeAlternative Labels an inspiration in the upper-middle score band.
ProgramPromptFragmentKey InspirationTypeDiverse Labels an inspiration chosen for being different from the parent.
ProgramPromptFragmentKey InspirationTypeExperimental Labels an inspiration in the lower-middle score band.
ProgramPromptFragmentKey InspirationTypeExploratory Labels an inspiration in the lowest score band.
ProgramPromptFragmentKey InspirationTypeHighPerformer Labels an inspiration in the highest score band.
ProgramPromptFragmentKey InspirationTypeMigrant Labels an inspiration that arrived from another island.
ProgramPromptFragmentKey InspirationTypeRandom Labels an inspiration drawn at random.
ProgramPromptFragmentKey NoFeatureCoordinates States that no feature coordinates are available.
ProgramPromptFragmentKey NoSpecificGuidance The fallback guidance used when nothing more specific applies.
ProgramPromptFragmentKey TopProgramMetricsPrefix Introduces the strong measurements of a top program.
int value__