Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
Learner that derives prompt stability state for ACG.
This learner groups annotated LLM requests by derived ACG profile key, builds prompt IR observations, persists a bounded observation window, and updates the hot cache with the latest stability results.
impl AcgLearnerimpl AcgLearner
newpub fn new(
agent_id: impl Into<String>,
observation_window: usize,
thresholds: StabilityThresholds,
) -> Self
Create a new ACG learner.
agent_id: Agent identifier whose observations should be updated.observation_window: Maximum number of observations to retain per profile.thresholds: Stability thresholds used during analysis.A configured AcgLearner.
impl Learner for AcgLearnerimpl Learner for AcgLearner
process_runfn process_run<'a>(
&'a self,
run: &'a RunRecord,
backend: &'a dyn StorageBackendDyn,
hot_cache: &'a Arc<RwLock<HotCache>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>