pub enum ApprovalDecision {
Approve,
ApproveWithEdits(Box<TaskGraph>),
Reject(String),
}Expand description
The decision a human makes at a HITL gate.
Variants§
Approve
Proceed as-is.
ApproveWithEdits(Box<TaskGraph>)
Proceed with a user-supplied modified graph.
Only meaningful for Plan gates; for Node / Tool gates the
executor ignores the graph and treats this as a plain Approve.
Reject(String)
Reject and terminate the run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApprovalDecision
impl RefUnwindSafe for ApprovalDecision
impl Send for ApprovalDecision
impl Sync for ApprovalDecision
impl Unpin for ApprovalDecision
impl UnwindSafe for ApprovalDecision
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