pub struct UserConfirmation;
Expand description
User confirmation utilities for safety-critical operations
Implementations§
Source§impl UserConfirmation
impl UserConfirmation
Sourcepub fn confirm_pro_model_usage(current_model: &str) -> Result<bool>
pub fn confirm_pro_model_usage(current_model: &str) -> Result<bool>
Ask for confirmation before switching to the most capable model (Gemini 2.5 Pro) This is critical for ensuring user control over potentially expensive operations
Sourcepub fn select_agent_mode() -> Result<AgentMode>
pub fn select_agent_mode() -> Result<AgentMode>
Present agent mode selection options to the user
Sourcepub fn assess_task_complexity(task_description: &str) -> Result<TaskComplexity>
pub fn assess_task_complexity(task_description: &str) -> Result<TaskComplexity>
Ask for task complexity assessment to determine agent mode
Sourcepub fn confirm_action(message: &str, default: bool) -> Result<bool>
pub fn confirm_action(message: &str, default: bool) -> Result<bool>
Simple yes/no confirmation with custom message
Sourcepub fn show_warning(message: &str) -> Result<()>
pub fn show_warning(message: &str) -> Result<()>
Display a warning message and wait for user acknowledgment
Auto Trait Implementations§
impl Freeze for UserConfirmation
impl RefUnwindSafe for UserConfirmation
impl Send for UserConfirmation
impl Sync for UserConfirmation
impl Unpin for UserConfirmation
impl UnwindSafe for UserConfirmation
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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