pub struct KnowledgeGapAnalyzer { /* private fields */ }Expand description
Knowledge gap analyzer with multi-factor priority scoring
Main API for registering, tracking, and resolving knowledge gaps. Automatically computes priority scores and provides action suggestions.
Implementations§
Source§impl KnowledgeGapAnalyzer
impl KnowledgeGapAnalyzer
Sourcepub fn new(board: Arc<HypothesisBoard>, graph: Arc<BeliefGraph>) -> Self
pub fn new(board: Arc<HypothesisBoard>, graph: Arc<BeliefGraph>) -> Self
Create new analyzer with default scoring config
Sourcepub fn with_scoring_config(self, config: ScoringConfig) -> Self
pub fn with_scoring_config(self, config: ScoringConfig) -> Self
Set custom scoring configuration (builder pattern)
Sourcepub async fn register_gap(
&mut self,
description: String,
criticality: GapCriticality,
gap_type: GapType,
hypothesis_id: Option<HypothesisId>,
) -> Result<GapId>
pub async fn register_gap( &mut self, description: String, criticality: GapCriticality, gap_type: GapType, hypothesis_id: Option<HypothesisId>, ) -> Result<GapId>
Register a new knowledge gap
Computes initial depth and evidence strength from linked hypothesis.
Sourcepub async fn fill_gap(
&mut self,
gap_id: GapId,
resolution_notes: String,
) -> Result<()>
pub async fn fill_gap( &mut self, gap_id: GapId, resolution_notes: String, ) -> Result<()>
Mark a gap as filled with resolution notes
Sourcepub async fn list_gaps(&self, unfilled_only: bool) -> Vec<KnowledgeGap>
pub async fn list_gaps(&self, unfilled_only: bool) -> Vec<KnowledgeGap>
List all gaps, optionally filtering unfilled only
Returns gaps sorted by score descending (highest priority first).
Sourcepub fn get_gap(&self, gap_id: GapId) -> Option<&KnowledgeGap>
pub fn get_gap(&self, gap_id: GapId) -> Option<&KnowledgeGap>
Get a specific gap by ID
Sourcepub async fn auto_close_gaps(&mut self) -> Vec<GapId>
pub async fn auto_close_gaps(&mut self) -> Vec<GapId>
Auto-close gaps where linked hypothesis reached high confidence
Returns list of closed gap IDs.
Sourcepub async fn get_suggestions(&self, unfilled_only: bool) -> Vec<GapSuggestion>
pub async fn get_suggestions(&self, unfilled_only: bool) -> Vec<GapSuggestion>
Get action suggestions for gaps
Returns context-aware suggestions sorted by priority.
Sourcepub fn recompute_scores(&mut self)
pub fn recompute_scores(&mut self)
Recompute all gap scores (useful after config changes)
Auto Trait Implementations§
impl Freeze for KnowledgeGapAnalyzer
impl !RefUnwindSafe for KnowledgeGapAnalyzer
impl Send for KnowledgeGapAnalyzer
impl Sync for KnowledgeGapAnalyzer
impl Unpin for KnowledgeGapAnalyzer
impl UnsafeUnpin for KnowledgeGapAnalyzer
impl !UnwindSafe for KnowledgeGapAnalyzer
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
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>
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>
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