Spaces:
Sleeping
Sleeping
| use serde::{Deserialize, Serialize}; | |
| // The incoming request payload | |
| pub struct VerifyRequest { | |
| pub claim: String, | |
| pub qdrant_threshold: Option<f32>, | |
| } | |
| // The outgoing response payload | |
| pub struct VerifyResponse { | |
| pub final_verdict: String, | |
| pub aggregate_confidence: f32, | |
| pub evidence: Vec<Evidence>, | |
| } | |
| // The individual evidence cards for the React frontend | |
| pub struct Evidence { | |
| pub title: String, | |
| pub source: String, | |
| pub snippet: String, | |
| pub stance: String, | |
| pub confidence: f32, | |
| } | |