pub struct RagFaultLocalizerBuilder { /* private fields */ }Expand description
Builder for creating RAG-enhanced fault localizer
Implementations§
Source§impl RagFaultLocalizerBuilder
impl RagFaultLocalizerBuilder
Sourcepub fn knowledge_base(self, kb: BugKnowledgeBase) -> Self
pub fn knowledge_base(self, kb: BugKnowledgeBase) -> Self
Set the knowledge base
Sourcepub fn formula(self, formula: SbflFormula) -> Self
pub fn formula(self, formula: SbflFormula) -> Self
Set SBFL formula
Sourcepub fn similar_bugs(self, k: usize) -> Self
pub fn similar_bugs(self, k: usize) -> Self
Set similar bugs count
Sourcepub fn fix_suggestions(self, k: usize) -> Self
pub fn fix_suggestions(self, k: usize) -> Self
Set fix suggestions count
Sourcepub fn fusion(self, fusion: LocalizationFusion) -> Self
pub fn fusion(self, fusion: LocalizationFusion) -> Self
Set fusion strategy
Sourcepub fn with_explanations(self) -> Self
pub fn with_explanations(self) -> Self
Enable explanations
Sourcepub fn build(self) -> RagFaultLocalizer
pub fn build(self) -> RagFaultLocalizer
Build the localizer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RagFaultLocalizerBuilder
impl RefUnwindSafe for RagFaultLocalizerBuilder
impl Send for RagFaultLocalizerBuilder
impl Sync for RagFaultLocalizerBuilder
impl Unpin for RagFaultLocalizerBuilder
impl UnwindSafe for RagFaultLocalizerBuilder
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> 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