pub struct ForbiddenCmd {
pub command: String,
pub reason: String,
pub reconsider: bool,
}Expand description
A forbidden command configuration.
Fields§
§command: StringRegex pattern to match against the full command line (command + args).
reason: StringReason shown to user when blocked.
reconsider: boolIf true, inject a warning message and let the LLM reconsider instead of rejecting. Like tool-aware RAG, this will retry the turn with additional context.
Implementations§
Trait Implementations§
Source§impl Clone for ForbiddenCmd
impl Clone for ForbiddenCmd
Source§impl Debug for ForbiddenCmd
impl Debug for ForbiddenCmd
Source§impl<'de> Deserialize<'de> for ForbiddenCmd
impl<'de> Deserialize<'de> for ForbiddenCmd
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
Auto Trait Implementations§
impl Forget for ForbiddenCmd
impl Freeze for ForbiddenCmd
impl Move for ForbiddenCmd
impl RefUnwindSafe for ForbiddenCmd
impl Send for ForbiddenCmd
impl Sync for ForbiddenCmd
impl Unpin for ForbiddenCmd
impl UnsafeUnpin for ForbiddenCmd
impl UnwindSafe for ForbiddenCmd
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