pub enum PromptStrategy {
Prompt(Sender<UiEvent>),
HeadlessDeny,
}Expand description
How PermissionExtension resolves a tool call that steps 1-3 of
decide() left undecided.
Variants§
Prompt(Sender<UiEvent>)
Interactive: emit UiEvent::PermissionRequested and await the user
(TUI and --rpc).
HeadlessDeny
Non-interactive: deny — there is no one to ask (--json).
Auto Trait Implementations§
impl Freeze for PromptStrategy
impl RefUnwindSafe for PromptStrategy
impl Send for PromptStrategy
impl Sync for PromptStrategy
impl Unpin for PromptStrategy
impl UnsafeUnpin for PromptStrategy
impl UnwindSafe for PromptStrategy
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