Trait AIProvider

Source
pub trait AIProvider: Send + Sync {
    // Required methods
    fn analyze_content<'life0, 'async_trait>(
        &'life0 self,
        request: AnalysisRequest,
    ) -> Pin<Box<dyn Future<Output = Result<MatchResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn verify_match<'life0, 'async_trait>(
        &'life0 self,
        verification: VerificationRequest,
    ) -> Pin<Box<dyn Future<Output = Result<ConfidenceScore>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

AI provider trait for content analysis and subtitle matching.

This trait defines the interface for AI services that can analyze video and subtitle content to determine optimal matches.

Required Methods§

Source

fn analyze_content<'life0, 'async_trait>( &'life0 self, request: AnalysisRequest, ) -> Pin<Box<dyn Future<Output = Result<MatchResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Analyze multimedia files and subtitle files for matching results.

§Arguments
  • request - Analysis request containing files and content samples
§Returns

A MatchResult containing potential matches with confidence scores

Source

fn verify_match<'life0, 'async_trait>( &'life0 self, verification: VerificationRequest, ) -> Pin<Box<dyn Future<Output = Result<ConfidenceScore>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Verify file matching confidence.

§Arguments
  • verification - Verification request for existing matches
§Returns

A confidence score for the verification request

Implementors§