pub struct BehaviorAdapter<'a> { /* private fields */ }Expand description
Injects learned patterns as explicitly advisory context; they never become runtime or user authority merely because they are rendered in the prompt.
Implementations§
Source§impl<'a> BehaviorAdapter<'a>
impl<'a> BehaviorAdapter<'a>
Sourcepub fn new(store: &'a KnowledgeStore, config: EvolutionConfig) -> Self
pub fn new(store: &'a KnowledgeStore, config: EvolutionConfig) -> Self
Create a new BehaviorAdapter.
Sourcepub fn get_evolution_context(&self) -> String
pub fn get_evolution_context(&self) -> String
Get the evolution context to inject into the system prompt.
Sourcepub fn get_patterns_by_category(&self, category: &str) -> Vec<Pattern>
pub fn get_patterns_by_category(&self, category: &str) -> Vec<Pattern>
Get patterns for a specific category.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BehaviorAdapter<'a>
impl<'a> !Send for BehaviorAdapter<'a>
impl<'a> !Sync for BehaviorAdapter<'a>
impl<'a> !UnwindSafe for BehaviorAdapter<'a>
impl<'a> Freeze for BehaviorAdapter<'a>
impl<'a> Unpin for BehaviorAdapter<'a>
impl<'a> UnsafeUnpin for BehaviorAdapter<'a>
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