Validated cache of portable rollout trajectories keyed by identity.
Summary
Functions
Claims one exact GEPA trajectory for an RL (problem, prompt) slot.
Clears all prior GEPA samples when a new fast cycle starts.
Types
@type t() :: %Imp.Training.FastSlow.ReuseCache{ cycle: non_neg_integer(), entries: %{required(key()) => [Imp.Training.FastSlow.CachedTrajectory.t()]}, theta_id: String.t() }
Functions
@spec claim(t(), String.t(), String.t(), String.t()) :: {:ok, Imp.Training.FastSlow.CachedTrajectory.t(), t()} | :miss
Claims one exact GEPA trajectory for an RL (problem, prompt) slot.
@spec new!(non_neg_integer(), String.t(), [Imp.Training.FastSlow.CachedTrajectory.t()]) :: t()
@spec next_cycle(t(), non_neg_integer(), String.t()) :: t()
Clears all prior GEPA samples when a new fast cycle starts.