pub struct AgentRunSnapshot { /* private fields */ }Expand description
Public, fully revalidated snapshot of one durably admitted Agent run.
The snapshot intentionally excludes authorization evidence, request input,
graph state, leases, scheduler internals, and private diagnostics. Pollers
can use (run_id, revision) as a monotonic observation key. A quarantined
run remains visible but must not be represented as executable work.
Implementations§
Source§impl AgentRunSnapshot
impl AgentRunSnapshot
Sourcepub const fn provenance(&self) -> &AgentResultProvenance
pub const fn provenance(&self) -> &AgentResultProvenance
Returns trusted tenant, run, thread, invocation, and Agent identity.
Sourcepub const fn graph(&self) -> &GraphReference
pub const fn graph(&self) -> &GraphReference
Returns the immutable graph version pinned at admission.
Sourcepub const fn admission_digest(&self) -> Digest
pub const fn admission_digest(&self) -> Digest
Returns the complete immutable admission checksum.
Sourcepub const fn admitted_at(&self) -> Timestamp
pub const fn admitted_at(&self) -> Timestamp
Returns the authoritative database admission observation.
Sourcepub const fn revision(&self) -> RunRevision
pub const fn revision(&self) -> RunRevision
Returns the current monotonic lifecycle revision.
Sourcepub const fn changed_at(&self) -> Timestamp
pub const fn changed_at(&self) -> Timestamp
Returns the latest committed lifecycle observation.
Sourcepub const fn is_quarantined(&self) -> bool
pub const fn is_quarantined(&self) -> bool
Returns whether integrity or operator policy removed this run from execution.
Sourcepub const fn outcome(&self) -> Option<&AgentRunTerminalOutcome>
pub const fn outcome(&self) -> Option<&AgentRunTerminalOutcome>
Returns a terminal outcome only after one has durably committed.
Trait Implementations§
Source§impl Clone for AgentRunSnapshot
impl Clone for AgentRunSnapshot
Source§impl Debug for AgentRunSnapshot
impl Debug for AgentRunSnapshot
Source§impl<'de> Deserialize<'de> for AgentRunSnapshot
impl<'de> Deserialize<'de> for AgentRunSnapshot
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl JsonSchema for AgentRunSnapshot
impl JsonSchema for AgentRunSnapshot
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AgentRunSnapshot
impl !UnwindSafe for AgentRunSnapshot
impl Forget for AgentRunSnapshot
impl Freeze for AgentRunSnapshot
impl Move for AgentRunSnapshot
impl Send for AgentRunSnapshot
impl Sync for AgentRunSnapshot
impl Unpin for AgentRunSnapshot
impl UnsafeUnpin for AgentRunSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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 more