pub struct RunRecord {
pub id: String,
pub seq: u64,
pub brief: Option<String>,
pub constraints: Option<String>,
pub plan: Option<String>,
pub steps: Vec<RunStep>,
pub timestamp_ms: Option<u128>,
pub snapshot_hash: Option<String>,
}Expand description
A top-level agent-run provenance record appended to runs.jsonl.
The caller is responsible for computing timestamp_ms (unix milliseconds)
and snapshot_hash (the content hash of the document state produced by the
run) before calling append_run. This module performs no clock reads.
Fields§
§id: StringStable run id (unique within a document’s runs log).
seq: u64Monotonic sequence number within this log (0-based).
brief: Option<String>Short human-readable description of what the agent was asked to do.
constraints: Option<String>Optional constraints or guardrails supplied to the agent.
plan: Option<String>Optional plan or reasoning trace produced before execution.
steps: Vec<RunStep>Ordered list of steps executed during this run.
timestamp_ms: Option<u128>Unix timestamp in milliseconds at which the run completed.
snapshot_hash: Option<String>Content hash of the document state this run produced (into objects/).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunRecord
impl<'de> Deserialize<'de> for RunRecord
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 StructuralPartialEq for RunRecord
Auto Trait Implementations§
impl Freeze for RunRecord
impl RefUnwindSafe for RunRecord
impl Send for RunRecord
impl Sync for RunRecord
impl Unpin for RunRecord
impl UnsafeUnpin for RunRecord
impl UnwindSafe for RunRecord
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