pub struct ContextGatherer { /* private fields */ }Expand description
Main context gatherer
Implementations§
Source§impl ContextGatherer
impl ContextGatherer
pub fn new(project_path: PathBuf, config: GatherConfig) -> Self
Sourcepub fn gather_all(&mut self) -> Result<()>
pub fn gather_all(&mut self) -> Result<()>
Gather context from all configured sources
Sourcepub fn contexts(&self) -> &[GatheredContext]
pub fn contexts(&self) -> &[GatheredContext]
Get gathered contexts
Sourcepub fn analyze_temporal(
&self,
resolution: TemporalResolution,
) -> TemporalPatterns
pub fn analyze_temporal( &self, resolution: TemporalResolution, ) -> TemporalPatterns
Perform temporal analysis on gathered contexts
Sourcepub fn create_temporal_waves(
&self,
resolution: TemporalResolution,
) -> TemporalWaveGrid
pub fn create_temporal_waves( &self, resolution: TemporalResolution, ) -> TemporalWaveGrid
Get temporal wave grid representation
Sourcepub fn apply_temporal_decay(&mut self, half_life_days: f32)
pub fn apply_temporal_decay(&mut self, half_life_days: f32)
Apply temporal decay to relevance scores
Sourcepub fn analyze_partnership(&self) -> PartnershipAnalysis
pub fn analyze_partnership(&self) -> PartnershipAnalysis
Analyze AI-human partnership patterns
Sourcepub fn session_tracker(&self) -> &CollaborativeSessionTracker
pub fn session_tracker(&self) -> &CollaborativeSessionTracker
Get collaborative session tracker
Sourcepub fn session_tracker_mut(&mut self) -> &mut CollaborativeSessionTracker
pub fn session_tracker_mut(&mut self) -> &mut CollaborativeSessionTracker
Get mutable collaborative session tracker
Sourcepub fn anchor_memory(
&mut self,
origin: CollaborativeOrigin,
anchor_type: AnchorType,
context: String,
keywords: Vec<String>,
) -> Result<String>
pub fn anchor_memory( &mut self, origin: CollaborativeOrigin, anchor_type: AnchorType, context: String, keywords: Vec<String>, ) -> Result<String>
Anchor an important collaborative memory
Sourcepub fn find_relevant_memories(&self, keywords: &[String]) -> Vec<String>
pub fn find_relevant_memories(&self, keywords: &[String]) -> Vec<String>
Find memories related to keywords
Sourcepub fn get_co_engagement_heatmap(&self) -> CoEngagementHeatmap
pub fn get_co_engagement_heatmap(&self) -> CoEngagementHeatmap
Get co-engagement heatmap
Sourcepub fn get_cross_domain_patterns(&self) -> Vec<&CrossDomainPattern>
pub fn get_cross_domain_patterns(&self) -> Vec<&CrossDomainPattern>
Get cross-domain patterns
Sourcepub fn get_relevant_insights(
&self,
keywords: &[String],
) -> Vec<CrossSessionInsight>
pub fn get_relevant_insights( &self, keywords: &[String], ) -> Vec<CrossSessionInsight>
Get relevant insights for current project
Sourcepub fn invite_persona(
&self,
context: &str,
duration: u32,
) -> Option<PersonaInvitation>
pub fn invite_persona( &self, context: &str, duration: u32, ) -> Option<PersonaInvitation>
Invite a persona for consultation
Auto Trait Implementations§
impl Freeze for ContextGatherer
impl RefUnwindSafe for ContextGatherer
impl Send for ContextGatherer
impl Sync for ContextGatherer
impl Unpin for ContextGatherer
impl UnsafeUnpin for ContextGatherer
impl UnwindSafe for ContextGatherer
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for 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>
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