pub struct RunCheckpoint {Show 14 fields
pub checkpoint_id: String,
pub run_id: RunId,
pub checkpoint_seq: u64,
pub covers_journal_seq: u64,
pub loop_state: String,
pub turn_id: Option<TurnId>,
pub attempt_id: Option<AttemptId>,
pub runtime_package_fingerprint: String,
pub pending_side_effects: Vec<PendingSideEffect>,
pub pending_approvals: Vec<String>,
pub content_ref_manifest: Vec<ContentRef>,
pub state_hash: String,
pub created_at_millis: u64,
pub writer_id: String,
}Expand description
Carries the run checkpoint record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§checkpoint_id: StringStable checkpoint id used for typed lineage, lookup, or dedupe.
run_id: RunIdRun identifier used for lineage, filtering, replay, and dedupe.
checkpoint_seq: u64Checkpoint seq used by this record or request.
covers_journal_seq: u64Covers journal seq used by this record or request.
loop_state: StringLoop state used by this record or request.
turn_id: Option<TurnId>Turn identifier for one loop turn within a run.
attempt_id: Option<AttemptId>Attempt identifier for retry, repair, provider, or tool execution evidence.
runtime_package_fingerprint: StringFingerprint of the runtime package snapshot in force when this value was produced. Use it for replay, dedupe, and package-lineage checks; the field is evidence and does not execute package behavior.
pending_side_effects: Vec<PendingSideEffect>Collection of pending side effects values. Ordering and membership should be treated as part of the serialized contract when relevant.
pending_approvals: Vec<String>Collection of pending approvals values. Ordering and membership should be treated as part of the serialized contract when relevant.
content_ref_manifest: Vec<ContentRef>Content reference associated with this value. Resolve it through policy-gated content stores instead of embedding raw content.
state_hash: StringDeterministic state hash used for stale checks, package evidence, or replay comparisons.
created_at_millis: u64Time value in milliseconds for created at millis. Use it for timeout, ordering, or diagnostic calculations.
writer_id: StringStable writer id used for typed lineage, lookup, or dedupe.
Implementations§
Source§impl RunCheckpoint
impl RunCheckpoint
Sourcepub fn validate_against_latest_seq(
&self,
latest_journal_seq: u64,
) -> Result<(), AgentError>
pub fn validate_against_latest_seq( &self, latest_journal_seq: u64, ) -> Result<(), AgentError>
Validates the records::journal invariants and returns a typed error on failure. Validation is pure and does not perform I/O, dispatch, journal appends, or adapter calls.
Trait Implementations§
Source§impl Clone for RunCheckpoint
impl Clone for RunCheckpoint
Source§fn clone(&self) -> RunCheckpoint
fn clone(&self) -> RunCheckpoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunCheckpoint
impl Debug for RunCheckpoint
Source§impl<'de> Deserialize<'de> for RunCheckpoint
impl<'de> Deserialize<'de> for RunCheckpoint
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 PartialEq for RunCheckpoint
impl PartialEq for RunCheckpoint
Source§fn eq(&self, other: &RunCheckpoint) -> bool
fn eq(&self, other: &RunCheckpoint) -> bool
self and other values to be equal, and is used by ==.