Random Search
Uniformly sample a parent and context from the full candidate history.
"""Random-search PromptBuilder component — the standard multi-section template."""
from __future__ import annotations
from ...components.prompt import DefaultPromptBuilder
class RandomPromptBuilder(DefaultPromptBuilder):
"""The canonical context builder: task -> metrics -> feedback -> inspirations -> current program.
Random search adds nothing of its own to the prompt; what differs from a greedy baseline is *which*
parent and inspirations fill these sections (chosen uniformly at random), not how they are rendered.
"""