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 提供商 Trait 定義

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,

分析多媒體檔案和字幕檔案的匹配結果

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,

驗證檔案匹配的信心度

Implementors§