pub struct SlotEvidence {
pub key: String,
pub present: bool,
pub value: Option<Value>,
pub source: Option<String>,
pub confidence: Option<f64>,
pub last_sequence: Option<u64>,
pub last_origin: Option<StateMutationOrigin>,
}Expand description
Provenance and confidence for a single state slot — the evidence behind a
value, aggregated from the mutation journal and the state_meta:{key} record.
This is what lets the model confirm principled-ly (“I heard 6, right?”): whether a slot was directly set, resolved from a system, or carries low confidence, and when it last changed.
Fields§
§key: StringThe state key.
present: boolWhether the key currently has a value.
value: Option<Value>The current value, if any.
source: Option<String>Provenance source from state_meta:{key}.source (e.g. agent/fetch/
llm/extraction), if recorded.
confidence: Option<f64>Confidence from state_meta:{key}.confidence (0.0–1.0), if recorded.
last_sequence: Option<u64>Journal sequence of the most recent write to this key, if still in the bounded journal window.
last_origin: Option<StateMutationOrigin>Origin of the most recent recorded write, if known.
Trait Implementations§
Source§impl Clone for SlotEvidence
impl Clone for SlotEvidence
Source§fn clone(&self) -> SlotEvidence
fn clone(&self) -> SlotEvidence
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlotEvidence
impl Debug for SlotEvidence
Auto Trait Implementations§
impl Freeze for SlotEvidence
impl RefUnwindSafe for SlotEvidence
impl Send for SlotEvidence
impl Sync for SlotEvidence
impl Unpin for SlotEvidence
impl UnwindSafe for SlotEvidence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more