pub struct StrangeLoop { /* private fields */ }Expand description
The main strange loop structure
Implementations§
Source§impl StrangeLoop
impl StrangeLoop
Sourcepub fn new(config: StrangeLoopConfig) -> Self
pub fn new(config: StrangeLoopConfig) -> Self
Create a new strange loop
Sourcepub fn learn_at_level(
&mut self,
level: MetaLevel,
data: &[String],
) -> Result<Vec<MetaKnowledge>, StrangeLoopError>
pub fn learn_at_level( &mut self, level: MetaLevel, data: &[String], ) -> Result<Vec<MetaKnowledge>, StrangeLoopError>
Learn at a specific meta-level
Sourcepub fn apply_modification(
&mut self,
rule: ModificationRule,
) -> Result<(), StrangeLoopError>
pub fn apply_modification( &mut self, rule: ModificationRule, ) -> Result<(), StrangeLoopError>
Apply self-modification with safety checks
Sourcepub fn add_safety_constraint(&mut self, constraint: SafetyConstraint)
pub fn add_safety_constraint(&mut self, constraint: SafetyConstraint)
Add a safety constraint
Sourcepub fn get_knowledge_at_level(&self, level: MetaLevel) -> Vec<MetaKnowledge>
pub fn get_knowledge_at_level(&self, level: MetaLevel) -> Vec<MetaKnowledge>
Get knowledge at a specific level
Sourcepub fn get_all_knowledge(&self) -> HashMap<MetaLevel, Vec<MetaKnowledge>>
pub fn get_all_knowledge(&self) -> HashMap<MetaLevel, Vec<MetaKnowledge>>
Get all meta-knowledge
Sourcepub fn get_summary(&self) -> MetaLearningSummary
pub fn get_summary(&self) -> MetaLearningSummary
Get summary statistics
Sourcepub fn analyze_behavior(
&mut self,
trajectory_data: Vec<Vec<f64>>,
) -> Result<String, StrangeLoopError>
pub fn analyze_behavior( &mut self, trajectory_data: Vec<Vec<f64>>, ) -> Result<String, StrangeLoopError>
Analyze behavioral dynamics using attractor analysis
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StrangeLoop
impl !RefUnwindSafe for StrangeLoop
impl Send for StrangeLoop
impl Sync for StrangeLoop
impl Unpin for StrangeLoop
impl !UnwindSafe for StrangeLoop
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