pub struct AgentResumeEvidence {
pub node: AgentExecutionNode,
pub status: RunStatus,
pub run_step: usize,
pub cursor: AgentResumeCursor,
pub usage: Usage,
pub context_revision: Option<String>,
pub environment_ref: Option<String>,
pub pending_approval_count: usize,
pub deferred_tool_count: usize,
pub trace_context: TraceContext,
pub metadata: Metadata,
}Expand description
Stable resume evidence for durable service runtimes and external SessionStore implementations.
Fields§
§node: AgentExecutionNodeExecution boundary captured by this checkpoint.
status: RunStatusCurrent run status.
run_step: usizeCompleted run step at this boundary.
cursor: AgentResumeCursorResume cursors for replay and continuation.
usage: UsageAccumulated usage snapshot.
context_revision: Option<String>Context state revision or hash provided by a service layer.
environment_ref: Option<String>Environment provider state reference provided by a service layer.
pending_approval_count: usizePending approval count.
deferred_tool_count: usizeDeferred tool return count.
trace_context: TraceContextTrace correlation snapshot.
metadata: MetadataResume metadata for SessionStore implementations.
Implementations§
Source§impl AgentResumeEvidence
impl AgentResumeEvidence
Sourcepub fn new(node: AgentExecutionNode, state: &AgentRunState) -> Self
pub fn new(node: AgentExecutionNode, state: &AgentRunState) -> Self
Build resume evidence from run state and boundary metadata.
Sourcepub const fn with_stream_cursor(self, stream_cursor: usize) -> Self
pub const fn with_stream_cursor(self, stream_cursor: usize) -> Self
Attach stream cursor.
Sourcepub fn with_trace_context(self, trace_context: TraceContext) -> Self
pub fn with_trace_context(self, trace_context: TraceContext) -> Self
Attach trace context.
Sourcepub fn with_metadata(self, metadata: Metadata) -> Self
pub fn with_metadata(self, metadata: Metadata) -> Self
Attach evidence metadata.
Trait Implementations§
Source§impl Clone for AgentResumeEvidence
impl Clone for AgentResumeEvidence
Source§fn clone(&self) -> AgentResumeEvidence
fn clone(&self) -> AgentResumeEvidence
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 AgentResumeEvidence
impl Debug for AgentResumeEvidence
Source§impl<'de> Deserialize<'de> for AgentResumeEvidence
impl<'de> Deserialize<'de> for AgentResumeEvidence
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 AgentResumeEvidence
Source§impl PartialEq for AgentResumeEvidence
impl PartialEq for AgentResumeEvidence
Source§impl Serialize for AgentResumeEvidence
impl Serialize for AgentResumeEvidence
impl StructuralPartialEq for AgentResumeEvidence
Auto Trait Implementations§
impl Freeze for AgentResumeEvidence
impl RefUnwindSafe for AgentResumeEvidence
impl Send for AgentResumeEvidence
impl Sync for AgentResumeEvidence
impl Unpin for AgentResumeEvidence
impl UnsafeUnpin for AgentResumeEvidence
impl UnwindSafe for AgentResumeEvidence
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