pub struct ShadowEvent {
pub id: i64,
pub session_id: String,
pub turn_number: u64,
pub event_type: String,
pub tool_id: Option<String>,
pub risk_signal: Option<String>,
pub risk_level: String,
pub probe_verdict: Option<String>,
pub context_summary: Option<String>,
pub created_at: i64,
}Expand description
A single event in the persistent safety shadow stream.
Stored in safety_shadow_events and retrieved for cross-session probe context.
Fields§
§id: i64Database row id (0 for unsaved records).
session_id: StringAgent session identifier.
turn_number: u64Turn number within the session.
event_type: StringEvent category: "tool_call", "tool_result", "risk_signal", "probe_result".
tool_id: Option<String>Fully-qualified tool id for tool events, None for non-tool events.
risk_signal: Option<String>Serialised risk signal variant (from TrajectorySentinel), if applicable.
risk_level: StringRisk level at the time of the event: "calm", "elevated", "high", "critical".
probe_verdict: Option<String>Probe verdict for probe_result events: "allow", "deny", "skip".
context_summary: Option<String>Short human-readable summary included in the LLM probe context.
created_at: i64Unix timestamp (seconds) when the event was recorded.
Trait Implementations§
Source§impl Clone for ShadowEvent
impl Clone for ShadowEvent
Source§fn clone(&self) -> ShadowEvent
fn clone(&self) -> ShadowEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShadowEvent
impl RefUnwindSafe for ShadowEvent
impl Send for ShadowEvent
impl Sync for ShadowEvent
impl Unpin for ShadowEvent
impl UnsafeUnpin for ShadowEvent
impl UnwindSafe for ShadowEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request