pub enum ApprovalMode {
Ask,
Auto,
Strict,
}Expand description
Whether an agent should stop and ask the user before a mutating tool runs. FarHand itself has no UI; this is the one knob every agent entry translates into that agent’s own permission system.
Variants§
Ask
Prompt before every mutating tool; read-only tools run freely. The default.
Auto
Run everything without prompting; the audit log is the only record.
Strict
Prompt before every tool, read-only ones included.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalMode
impl Clone for ApprovalMode
impl Copy for ApprovalMode
Source§impl Debug for ApprovalMode
impl Debug for ApprovalMode
Source§impl<'de> Deserialize<'de> for ApprovalMode
impl<'de> Deserialize<'de> for ApprovalMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApprovalMode
Source§impl PartialEq for ApprovalMode
impl PartialEq for ApprovalMode
Source§impl Serialize for ApprovalMode
impl Serialize for ApprovalMode
impl StructuralPartialEq for ApprovalMode
Auto Trait Implementations§
impl Freeze for ApprovalMode
impl RefUnwindSafe for ApprovalMode
impl Send for ApprovalMode
impl Sync for ApprovalMode
impl Unpin for ApprovalMode
impl UnsafeUnpin for ApprovalMode
impl UnwindSafe for ApprovalMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.