pub struct TriangulationEngine { /* private fields */ }Expand description
The Triangulation Engine
Orchestrates triangulated web research with 3+ source verification.
Implementations§
Source§impl TriangulationEngine
impl TriangulationEngine
Sourcepub fn new(config: ResearchConfig) -> Self
pub fn new(config: ResearchConfig) -> Self
Create a new triangulation engine with default config
Sourcepub fn default_engine() -> Self
pub fn default_engine() -> Self
Create with default configuration
Sourcepub fn strict_engine() -> Self
pub fn strict_engine() -> Self
Create with strict configuration
Sourcepub fn config(&self) -> &ResearchConfig
pub fn config(&self) -> &ResearchConfig
Get current configuration
Sourcepub fn classifier_mut(&mut self) -> &mut TierClassifier
pub fn classifier_mut(&mut self) -> &mut TierClassifier
Get mutable reference to classifier for customization
Sourcepub fn research_with_urls(
&self,
query: &str,
source_urls: &[String],
source_contents: &[(String, Option<String>, Option<bool>)],
) -> ResearchResult
pub fn research_with_urls( &self, query: &str, source_urls: &[String], source_contents: &[(String, Option<String>, Option<bool>)], ) -> ResearchResult
Perform triangulated research on a query/claim
This is the main entry point. It:
- Analyzes the query
- Classifies provided source URLs by tier
- Filters sources by minimum tier
- Analyzes consensus
- Returns comprehensive verification result
Sourcepub fn quick_verify(&self, urls: &[String]) -> (bool, String)
pub fn quick_verify(&self, urls: &[String]) -> (bool, String)
Quick verification: just classify URLs and check triangulation requirement
Sourcepub fn check_source(&self, url: &str) -> SourceQuality
pub fn check_source(&self, url: &str) -> SourceQuality
Check if a single URL meets tier requirements
Sourcepub fn get_tier(&self, url: &str) -> SourceTier
pub fn get_tier(&self, url: &str) -> SourceTier
Get source tier for a URL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TriangulationEngine
impl RefUnwindSafe for TriangulationEngine
impl Send for TriangulationEngine
impl Sync for TriangulationEngine
impl Unpin for TriangulationEngine
impl UnwindSafe for TriangulationEngine
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