pub struct RevertRecord {
pub category: RevertCategory,
pub target: NodeId,
pub abandoned_node_ids: Vec<NodeId>,
pub summary: Option<String>,
}Expand description
Structured metadata persisted in the details field of the synthetic
revert_to_state ToolResult, and (mirroring PrunRecord) carried into
the AgentEvent::RevertApplied payload by apply_revert.
Source-of-truth for revert observability: a session replay can reconstruct exactly which branch was abandoned, what category the agent assigned, and what summary it wrote.
Fields§
§category: RevertCategoryCategory the agent assigned at call time.
target: NodeIdTarget node — the new active-node-id after the revert.
abandoned_node_ids: Vec<NodeId>The node_ids of every message that fell off-trunk as a result of the
revert. Populated by apply_revert (Phase 3); empty at enqueue time.
summary: Option<String>Echo of RevertRequest.summary.
Trait Implementations§
Source§impl Clone for RevertRecord
impl Clone for RevertRecord
Source§fn clone(&self) -> RevertRecord
fn clone(&self) -> RevertRecord
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 RevertRecord
impl Debug for RevertRecord
Source§impl<'de> Deserialize<'de> for RevertRecord
impl<'de> Deserialize<'de> for RevertRecord
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
Auto Trait Implementations§
impl Freeze for RevertRecord
impl RefUnwindSafe for RevertRecord
impl Send for RevertRecord
impl Sync for RevertRecord
impl Unpin for RevertRecord
impl UnsafeUnpin for RevertRecord
impl UnwindSafe for RevertRecord
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