pub struct ContextAnalyzer { /* private fields */ }Expand description
๐ฏ Context analyzer that understands user intent and task focus
Implementationsยง
Sourceยงimpl ContextAnalyzer
impl ContextAnalyzer
Sourcepub fn analyze_task(&self, task_description: &str) -> TaskContext
pub fn analyze_task(&self, task_description: &str) -> TaskContext
๐ Analyze task context from natural language description
Sourcepub fn score_file_relevance(
&self,
file_node: &FileNode,
context: &TaskContext,
) -> RelevanceScore
pub fn score_file_relevance( &self, file_node: &FileNode, context: &TaskContext, ) -> RelevanceScore
๐ Score file relevance based on task context
Sourcepub fn score_directory_relevance(
&self,
dir_node: &FileNode,
context: &TaskContext,
) -> RelevanceScore
pub fn score_directory_relevance( &self, dir_node: &FileNode, context: &TaskContext, ) -> RelevanceScore
๐ Score directory relevance based on contents and context
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for ContextAnalyzer
impl RefUnwindSafe for ContextAnalyzer
impl Send for ContextAnalyzer
impl Sync for ContextAnalyzer
impl Unpin for ContextAnalyzer
impl UnsafeUnpin for ContextAnalyzer
impl UnwindSafe for ContextAnalyzer
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