Struct GateNotice
pub struct GateNotice<'a> {
pub run_id: &'a str,
pub sop_name: &'a str,
pub step: u32,
pub context: &'a Value,
pub gate_prompt: Option<&'a str>,
pub revision: u32,
pub edit_field: Option<&'a str>,
pub can_revise: bool,
}Expand description
Everything a route adapter needs to render a MEANINGFUL gate notice — not just “run X waits at step N” but WHAT is being approved.
Fields§
§run_id: &'a str§sop_name: &'a str§step: u32§context: &'a ValueThe parked step’s piped input — the object of the approval (the trigger payload at an intake gate, the previous step’s output later, e.g. the llm draft at a review gate).
gate_prompt: Option<&'a str>The step’s authored - prompt: template; {{path.to.field}}
placeholders resolve against context. None = automatic summary.
revision: u32Gate revision (bumped per Revise). Rides in the prompt reference
(<run_id>#<rev> when > 0) so an answer on a superseded prompt can never
resolve the current one.
edit_field: Option<&'a str>The checkpoint’s - edit: field: when set, the prompt offers an Edit
choice collecting the amended text (pre-filled from context[field]).
can_revise: boolWhether the prompt offers a Revise choice (llm.generate predecessor exists and the revision cap has headroom).
Auto Trait Implementations§
impl<'a> Freeze for GateNotice<'a>
impl<'a> RefUnwindSafe for GateNotice<'a>
impl<'a> Send for GateNotice<'a>
impl<'a> Sync for GateNotice<'a>
impl<'a> Unpin for GateNotice<'a>
impl<'a> UnsafeUnpin for GateNotice<'a>
impl<'a> UnwindSafe for GateNotice<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more