pub struct HallucinationDetector<'g> { /* private fields */ }Expand description
Detector that finds hallucinations in AI output about code.
Implementations§
Source§impl<'g> HallucinationDetector<'g>
impl<'g> HallucinationDetector<'g>
Sourcepub fn check_output(&self, ai_output: &str) -> HallucinationCheck
pub fn check_output(&self, ai_output: &str) -> HallucinationCheck
Check AI output for hallucinations.
Sourcepub fn suggest_fixes(&self, check: &HallucinationCheck) -> Vec<String>
pub fn suggest_fixes(&self, check: &HallucinationCheck) -> Vec<String>
Suggest fixes for detected hallucinations.
Auto Trait Implementations§
impl<'g> Freeze for HallucinationDetector<'g>
impl<'g> RefUnwindSafe for HallucinationDetector<'g>
impl<'g> Send for HallucinationDetector<'g>
impl<'g> Sync for HallucinationDetector<'g>
impl<'g> Unpin for HallucinationDetector<'g>
impl<'g> UnsafeUnpin for HallucinationDetector<'g>
impl<'g> UnwindSafe for HallucinationDetector<'g>
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