pub struct AcgLearner { /* private fields */ }Expand description
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.
Implementations§
Source§impl AcgLearner
impl AcgLearner
Sourcepub fn new(
agent_id: impl Into<String>,
observation_window: usize,
thresholds: StabilityThresholds,
) -> Self
pub fn new( agent_id: impl Into<String>, observation_window: usize, thresholds: StabilityThresholds, ) -> Self
Create a new ACG learner.
§Parameters
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.
§Returns
A configured AcgLearner.
Trait Implementations§
Source§impl Learner for AcgLearner
impl Learner for AcgLearner
Auto Trait Implementations§
impl Freeze for AcgLearner
impl RefUnwindSafe for AcgLearner
impl Send for AcgLearner
impl Sync for AcgLearner
impl Unpin for AcgLearner
impl UnsafeUnpin for AcgLearner
impl UnwindSafe for AcgLearner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more