pub struct EvolutionEngine {
pub agent_id: String,
pub axes: HashMap<PersonaAxis, AxisState>,
}Fields§
§agent_id: String§axes: HashMap<PersonaAxis, AxisState>Implementations§
Source§impl EvolutionEngine
impl EvolutionEngine
pub fn new(agent_id: impl Into<String>) -> EvolutionEngine
Sourcepub fn extract_signals(
&self,
store: &SqliteGraphStore,
) -> Result<Vec<RawSignal>, String>
pub fn extract_signals( &self, store: &SqliteGraphStore, ) -> Result<Vec<RawSignal>, String>
Read signals from the graph store for this agent (no writes).
Sourcepub fn ingest_signals(&mut self, signals: Vec<RawSignal>) -> usize
pub fn ingest_signals(&mut self, signals: Vec<RawSignal>) -> usize
Applies each signal to its axis EMA. Returns how many signals produced a score change
larger than INGEST_SCORE_EPSILON on an existing axis (skipped axes do not count).
Sourcepub fn snapshot(&self) -> PersonaSnapshot
pub fn snapshot(&self) -> PersonaSnapshot
Current axes as a snapshot (no writes).
Sourcepub fn write_persona_node(
&self,
store: &SqliteGraphStore,
snapshot: &PersonaSnapshot,
) -> Result<(), String>
pub fn write_persona_node( &self, store: &SqliteGraphStore, snapshot: &PersonaSnapshot, ) -> Result<(), String>
Persist snapshot to the evolution PersonaNode row.
snapshot.agent_id must match this engine’s agent id.
Sourcepub fn evolve(
&mut self,
store: &SqliteGraphStore,
) -> Result<PersonaSnapshot, String>
pub fn evolve( &mut self, store: &SqliteGraphStore, ) -> Result<PersonaSnapshot, String>
Full evolution pass: extract → ingest → snapshot → write.
pub fn correction_tick(&mut self, axis: PersonaAxis, correction: f32)
Auto Trait Implementations§
impl Freeze for EvolutionEngine
impl RefUnwindSafe for EvolutionEngine
impl Send for EvolutionEngine
impl Sync for EvolutionEngine
impl Unpin for EvolutionEngine
impl UnsafeUnpin for EvolutionEngine
impl UnwindSafe for EvolutionEngine
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