pub struct LearningEngine { /* private fields */ }Expand description
学习引擎
负责记忆系统的自适应学习,包括重要性调整、连接演化、用户偏好学习等。
Implementations§
Source§impl LearningEngine
impl LearningEngine
Sourcepub async fn execute_learning_task(
&self,
task: LearningTask,
) -> Result<LearningResult>
pub async fn execute_learning_task( &self, task: LearningTask, ) -> Result<LearningResult>
执行学习任务
Sourcepub async fn run_learning_cycle(&self) -> Result<Vec<LearningResult>>
pub async fn run_learning_cycle(&self) -> Result<Vec<LearningResult>>
执行定期学习循环
Sourcepub async fn get_stats(&self) -> LearningStats
pub async fn get_stats(&self) -> LearningStats
获取学习统计信息
Sourcepub async fn record_feedback(&self, feedback: FeedbackRecord) -> Result<()>
pub async fn record_feedback(&self, feedback: FeedbackRecord) -> Result<()>
记录用户反馈
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LearningEngine
impl !UnwindSafe for LearningEngine
impl Freeze for LearningEngine
impl Send for LearningEngine
impl Sync for LearningEngine
impl Unpin for LearningEngine
impl UnsafeUnpin for LearningEngine
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more