pub trait ResponseParser {
// Provided methods
fn parse_match_result(&self, response: &str) -> Result<MatchResult> { ... }
fn parse_confidence_score(&self, response: &str) -> Result<ConfidenceScore> { ... }
}Expand description
Response parsing trait for AI providers.
Provided Methods§
Sourcefn parse_match_result(&self, response: &str) -> Result<MatchResult>
fn parse_match_result(&self, response: &str) -> Result<MatchResult>
Parse match result.
Sourcefn parse_confidence_score(&self, response: &str) -> Result<ConfidenceScore>
fn parse_confidence_score(&self, response: &str) -> Result<ConfidenceScore>
Parse confidence score.