pub struct ToolBashDef {
pub kind: Option<String>,
pub description: Option<String>,
pub timeout_ms: Option<i32>,
pub allow_network: Option<bool>,
pub allow_fs: Option<bool>,
pub allowed_commands: Vec<String>,
pub blocked_commands: Vec<String>,
}Expand description
Bash tool definition — sandboxed command execution via just-bash.
Fields§
§kind: Option<String>§description: Option<String>Description of what this bash tool does
timeout_ms: Option<i32>Timeout in milliseconds (default: 30000)
allow_network: Option<bool>Whether to allow network access (default: false)
allow_fs: Option<bool>Whether to allow filesystem writes (default: true)
allowed_commands: Vec<String>Allowed commands whitelist (empty = all allowed)
blocked_commands: Vec<String>Blocked commands blacklist
Trait Implementations§
Source§impl Clone for ToolBashDef
impl Clone for ToolBashDef
Source§fn clone(&self) -> ToolBashDef
fn clone(&self) -> ToolBashDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolBashDef
impl Debug for ToolBashDef
Source§impl<'de> Deserialize<'de> for ToolBashDef
impl<'de> Deserialize<'de> for ToolBashDef
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 Freeze for ToolBashDef
impl RefUnwindSafe for ToolBashDef
impl Send for ToolBashDef
impl Sync for ToolBashDef
impl Unpin for ToolBashDef
impl UnwindSafe for ToolBashDef
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