pub struct Provenance {Show 15 fields
pub produced_by: String,
pub model_version: String,
pub payload_mode_used: PayloadMode,
pub confidence: Option<f64>,
pub verified: bool,
pub session_id: Option<String>,
pub timestamp: Option<String>,
pub tokens_used: Option<u64>,
pub cost_usd: Option<f64>,
pub contract_id: Option<String>,
pub contract_satisfied: Option<bool>,
pub contract_violations: Vec<String>,
pub verification_status: VerificationStatus,
pub evidence: Vec<EvidenceRef>,
pub lineage: Vec<ProvenanceEntry>,
}Expand description
Provenance metadata attached to every LDP task result.
Embedded in the output Value so it flows through JamJet’s existing
pipeline without modification.
Fields§
§produced_by: StringDelegate ID that produced this result.
model_version: StringModel version used.
payload_mode_used: PayloadModePayload mode used for this exchange.
confidence: Option<f64>Self-reported confidence (0.0 – 1.0).
verified: boolUse verification_status instead
Whether the result has been verified (e.g. by a second delegate).
session_id: Option<String>Session ID in which this result was produced.
timestamp: Option<String>Timestamp of production.
tokens_used: Option<u64>Tokens consumed by the delegate (delegate-reported).
cost_usd: Option<f64>Cost incurred in USD (delegate-reported).
contract_id: Option<String>Contract ID this result was produced under.
contract_satisfied: Option<bool>Whether the contract was satisfied (set by client-side validation).
contract_violations: Vec<String>List of contract violation codes (set by client-side validation).
verification_status: VerificationStatusGranular verification status.
evidence: Vec<EvidenceRef>Supporting evidence references.
lineage: Vec<ProvenanceEntry>Delegation lineage chain (newest hop first).
Implementations§
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more