pub struct AgentRunSnapshot {
pub run_id: String,
pub parent: Option<String>,
pub source: RunSource,
pub state: RunState,
pub budget: BudgetSummary,
pub terminal: Option<TerminalSummary>,
pub refs: Vec<ReceiptRef>,
}Expand description
Dependency-neutral snapshot of a single agent run.
Fields§
§run_id: StringSerialized run identifier in the owner’s existing scheme.
parent: Option<String>Serialized identifier of the parent run/thread, when the owner records one.
source: RunSourceWhich subsystem owns this run.
state: RunStateNeutral lifecycle state.
budget: BudgetSummaryScalar budget facts; defaults to all-unknown.
terminal: Option<TerminalSummary>Terminal outcome; present exactly when state == Terminal.
refs: Vec<ReceiptRef>Durable references produced by the run.
Implementations§
Source§impl AgentRunSnapshot
impl AgentRunSnapshot
Sourcepub fn is_coherent(&self) -> bool
pub fn is_coherent(&self) -> bool
true when the terminal summary and lifecycle state agree:
state == Terminal iff a terminal summary is present.
Adapters uphold this by construction; tests assert it.
Trait Implementations§
Source§impl Clone for AgentRunSnapshot
impl Clone for AgentRunSnapshot
Source§fn clone(&self) -> AgentRunSnapshot
fn clone(&self) -> AgentRunSnapshot
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 moreSource§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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentRunSnapshot
Source§impl PartialEq for AgentRunSnapshot
impl PartialEq for AgentRunSnapshot
Source§impl Serialize for AgentRunSnapshot
impl Serialize for AgentRunSnapshot
impl StructuralPartialEq for AgentRunSnapshot
Auto Trait Implementations§
impl Freeze for AgentRunSnapshot
impl RefUnwindSafe for AgentRunSnapshot
impl Send for AgentRunSnapshot
impl Sync for AgentRunSnapshot
impl Unpin for AgentRunSnapshot
impl UnsafeUnpin for AgentRunSnapshot
impl UnwindSafe 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
Mutably borrows from an owned value. Read more