pub enum AskReply {
Allow,
Deny {
message: Option<String>,
},
AllowEdited {
input: Value,
},
Respond {
content: String,
},
}Expand description
A human’s answer to a permission ask. Widened from a
bare bool so a denial can carry the reason to the model as tool-result
feedback — a steer fused with a “no”. §2b (M4) extends this with
AllowEdited/Respond; callers should treat it as non-exhaustive.
Variants§
Allow
Deny
AllowEdited
The human approved but rewrote the tool input (§2b).
Respond
The human answered as the tool — skip execution, use this as the tool result (§2b).
Trait Implementations§
impl StructuralPartialEq for AskReply
Auto Trait Implementations§
impl Freeze for AskReply
impl RefUnwindSafe for AskReply
impl Send for AskReply
impl Sync for AskReply
impl Unpin for AskReply
impl UnsafeUnpin for AskReply
impl UnwindSafe for AskReply
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