pub struct BashTool {}
Expand description
A tool that executes a bash command.
Implementations§
Trait Implementations§
Source§impl Tool for BashTool
impl Tool for BashTool
type Input = BashToolInput
type Output = BashToolOutput
type Error = BashToolError
fn invoke_typed<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 BashToolInput,
) -> Pin<Box<dyn Future<Output = Result<BashToolOutput, BashToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn description(&self) -> ToolDescription
fn description(&self) -> ToolDescription
Returns the
ToolDescription
containing metadata about the tool.Auto Trait Implementations§
impl Freeze for BashTool
impl RefUnwindSafe for BashTool
impl Send for BashTool
impl Sync for BashTool
impl Unpin 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