pub struct TaskVerification {
pub verdict: Verdict,
pub hallucination_rate: f64,
pub confidence: f64,
pub trust_score: f64,
pub verification_source: String,
pub claims: Vec<TaskClaim>,
pub verification_retries: u32,
pub message: Option<String>,
pub sources_cited: Vec<usize>,
pub stripped_claims: Vec<String>,
}Expand description
Verification block attached to completed tasks.
When verification_source == "prompt_only", confidence and
hallucination_rate reflect self-consistency only — rely on
verdict + support_score + message as authoritative.
Naming note: the JSON wire field is trust_score (kept stable
for backward compatibility). The public Rust method
support_score returns the same value under
the public marketing name. New code should prefer that method.
Fields§
§verdict: Verdict§hallucination_rate: f64§confidence: f64§trust_score: f64§verification_source: String§claims: Vec<TaskClaim>§verification_retries: u32§message: Option<String>Human-readable context for non-SAFE verdicts.
sources_cited: Vec<usize>§stripped_claims: Vec<String>Implementations§
Source§impl TaskVerification
impl TaskVerification
Sourcepub fn support_score(&self) -> f64
pub fn support_score(&self) -> f64
Public name for trust_score.
Returns the fraction of claims (0-1) that are supported by the
provided sources. Identical to the trust_score field — the
JSON wire format keeps trust_score for backward compatibility,
but the public marketing name is support score. Prefer this
method in new code.
Trait Implementations§
Source§impl Clone for TaskVerification
impl Clone for TaskVerification
Source§fn clone(&self) -> TaskVerification
fn clone(&self) -> TaskVerification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more