pub struct BashTool;Trait Implementations§
Source§impl AgentTool for BashTool
impl AgentTool for BashTool
fn name(&self) -> &str
Source§fn requires_permission(&self) -> bool
fn requires_permission(&self) -> bool
Whether the tool requires user permission by default. Read-only tools
(
read, ls, grep, glob) return false; mutating or side-effecting
tools (bash, write, edit) return true.fn description(&self) -> &str
fn parameters(&self) -> Value
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
_id: &'life1 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<AgentToolResult, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn label(&self) -> &str
Auto Trait Implementations§
impl Freeze for BashTool
impl RefUnwindSafe for BashTool
impl Send for BashTool
impl Sync for BashTool
impl Unpin for BashTool
impl UnsafeUnpin for BashTool
impl UnwindSafe for BashTool
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