pub struct RevertRequest {
pub category: RevertCategory,
pub target: NodeId,
pub summary: Option<String>,
}Expand description
A pending revert request the LLM submitted via revert_to_state.
Lifecycle:
RevertTool::executepushes one of these onto the shared queue.- The agent loop drains the queue between turns and calls
apply_reverton each (Phase 3). apply_revertvalidates the target, movesAgentContext.active_node_id, attaches aNodeTagcarryingsummary, and emitsAgentEvent::RevertAppliedwith the structured outcome.
Fields§
§category: RevertCategoryWhich of the four categories the agent chose — drives the resulting
TagKind and the kind-aware render policy.
target: NodeIdThe NodeId the agent wants to revert to. The abandoned span is
everything strictly after this node on the current trunk.
summary: Option<String>Agent-supplied one-line summary that becomes the
NodeTag::text attached to the target
node. None is structurally valid — apply_revert attaches an empty
tag — and reserved for a future fallback generator.
Trait Implementations§
Source§impl Clone for RevertRequest
impl Clone for RevertRequest
Source§fn clone(&self) -> RevertRequest
fn clone(&self) -> RevertRequest
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 moreAuto Trait Implementations§
impl Freeze for RevertRequest
impl RefUnwindSafe for RevertRequest
impl Send for RevertRequest
impl Sync for RevertRequest
impl Unpin for RevertRequest
impl UnsafeUnpin for RevertRequest
impl UnwindSafe for RevertRequest
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