Post · 1 min read· p. 221

AllComponentSelector

gepa.strategies.component_selector.AllReflectionComponentSelector

Bases: ReflectionComponentSelector

Methods:

__call__(state: GEPAState, trajectories: list[Trajectory], subsample_scores: list[float], candidate_idx: int, candidate: dict[str, str]) -> list[str]

Source code in gepa/strategies/component_selector.py

text
def __call__(
    self,
    state: GEPAState,
    trajectories: list[Trajectory],
    subsample_scores: list[float],
    candidate_idx: int,
    candidate: dict[str, str],
) -> list[str]:
    return list(candidate.keys())