pub struct SafetyValidator;
Expand description
Safety validation utilities for VTCode operations
Implementations§
Source§impl SafetyValidator
impl SafetyValidator
Sourcepub fn validate_model_usage(
requested_model: &str,
task_description: Option<&str>,
skip_confirmations: bool,
) -> Result<String>
pub fn validate_model_usage( requested_model: &str, task_description: Option<&str>, skip_confirmations: bool, ) -> Result<String>
Validate and potentially request confirmation for model usage Returns the approved model to use, which may be different from the requested model
Sourcepub fn validate_agent_mode(
_task_description: &str,
_skip_confirmations: bool,
) -> Result<AgentMode>
pub fn validate_agent_mode( _task_description: &str, _skip_confirmations: bool, ) -> Result<AgentMode>
Validate agent mode selection based on task complexity and user preferences Returns the recommended agent mode with user confirmation if needed
Sourcepub fn is_model_switch_safe(from_model: &str, to_model: &str) -> bool
pub fn is_model_switch_safe(from_model: &str, to_model: &str) -> bool
Check if a model switch is safe and cost-effective
Auto Trait Implementations§
impl Freeze for SafetyValidator
impl RefUnwindSafe for SafetyValidator
impl Send for SafetyValidator
impl Sync for SafetyValidator
impl Unpin for SafetyValidator
impl UnwindSafe for SafetyValidator
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