File size: 1,142 Bytes
cacd4d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
LLEGO Genetic Operators for GEPA.

This module provides genetic operators for prompt optimization:
- FitnessGuidedCrossover: Combines high-performing prompts
- DiversityGuidedMutation: Explores diverse variations
- LLEGOIntegrationLayer: Manages the genetic algorithm workflow

Based on: Decision Tree Induction Through LLMs via Semantically-Aware Evolution (ICLR 2025)
"""

# Base interfaces (SOLID: Interface Segregation)
from .base_operator import (
    BaseGeneticOperator,
    BaseCrossoverOperator,
    BaseMutationOperator,
)

# Data models
from .models import (
    PromptCandidate,
    PromptMetadata,
)

# Concrete operators (SOLID: Single Responsibility)
from .crossover import FitnessGuidedCrossover
from .mutation import DiversityGuidedMutation

# Integration layer
from .llego_operators import LLEGOIntegrationLayer

__all__ = [
    # Base interfaces
    'BaseGeneticOperator',
    'BaseCrossoverOperator',
    'BaseMutationOperator',
    # Data models
    'PromptCandidate',
    'PromptMetadata',
    # Operators
    'FitnessGuidedCrossover',
    'DiversityGuidedMutation',
    # Integration
    'LLEGOIntegrationLayer',
]