pub struct DenyAll;Expand description
Refuses everything, so the agent can inspect a workspace and report on it and cannot touch it. Each refusal reaches the model as a tool error, which is how it learns to stop trying.
An approver alone is not a refusal a durable rule cannot outrank, for
the reason written on ApprovalGate: a remembered allow resolves the
gate’s Prompt before an approver is ever consulted. A run whose refusal
is the whole point pairs this with DenyAllGate, which states the same
refusal where mentra treats it as final.
Trait Implementations§
Source§impl Approver for DenyAll
impl Approver for DenyAll
fn approve<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = ApprovalAnswer> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
impl Copy for DenyAll
Auto Trait Implementations§
impl Freeze for DenyAll
impl RefUnwindSafe for DenyAll
impl Send for DenyAll
impl Sync for DenyAll
impl Unpin for DenyAll
impl UnsafeUnpin for DenyAll
impl UnwindSafe for DenyAll
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