pub struct MemoryObservabilityEvent {Show 14 fields
pub event: &'static str,
pub outcome: &'static str,
pub session_id: Option<String>,
pub turn_id: Option<String>,
pub project_digest: Option<String>,
pub provider_id: Option<String>,
pub mode: Option<&'static str>,
pub record_count: Option<u32>,
pub retained_bytes: Option<u64>,
pub retained_tokens: Option<u64>,
pub dropped_bytes: Option<u64>,
pub duration_bucket: Option<&'static str>,
pub withheld_count: Option<u32>,
pub skipped_count: Option<u32>,
}Expand description
One spec §15 metadata-only observability event. Every field is drawn from the §15 ALLOWED list — session/turn correlation IDs, the host-derived project digest identity (never a raw project path), provider ID, mode, record counts, byte/token accounting, duration buckets, disclosure/withholding counts, and a typed outcome code. The struct has no field that could carry user messages, memory bodies, raw tool results, credentials, or provider error text, so the §15 DISALLOWED list is excluded by construction, not by discipline.
Fields§
§event: &'static strSpec §15 event name.
outcome: &'static strTyped outcome code (e.g. enabled, injected, timeout).
session_id: Option<String>Session correlation ID.
turn_id: Option<String>Turn correlation ID.
project_digest: Option<String>Host-derived project digest identity — never the raw project path.
provider_id: Option<String>Context-provider identity.
mode: Option<&'static str>Spec §6.1 mode vocabulary.
record_count: Option<u32>Selected record count.
retained_bytes: Option<u64>Bytes of rendered contribution retained after bounding.
retained_tokens: Option<u64>Conservative token estimate of the retained rendered text.
dropped_bytes: Option<u64>Bytes dropped by bounding.
duration_bucket: Option<&'static str>Coarse recall-duration bucket ([duration_bucket]).
withheld_count: Option<u32>Records withheld by disclosure policy (counted, never named).
skipped_count: Option<u32>Candidates considered but not selected.
Trait Implementations§
Source§impl Clone for MemoryObservabilityEvent
impl Clone for MemoryObservabilityEvent
Source§impl Debug for MemoryObservabilityEvent
impl Debug for MemoryObservabilityEvent
Auto Trait Implementations§
impl Freeze for MemoryObservabilityEvent
impl RefUnwindSafe for MemoryObservabilityEvent
impl Send for MemoryObservabilityEvent
impl Sync for MemoryObservabilityEvent
impl Unpin for MemoryObservabilityEvent
impl UnsafeUnpin for MemoryObservabilityEvent
impl UnwindSafe for MemoryObservabilityEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.