pub struct BashTool;Expand description
Tool for executing shell commands.
Uses bash on Unix, cmd on Windows.
Implementations§
Trait Implementations§
Source§impl Tool for BashTool
impl Tool for BashTool
Source§type Output = ToolOutput
type Output = ToolOutput
The output type of the tool.
Source§async fn definition(&self, _prompt: String) -> ToolDefinition
async fn definition(&self, _prompt: String) -> ToolDefinition
A method returning the tool definition. The user prompt can be used to
tailor the definition to the specific use case.
Source§impl ToolContext for BashTool
impl ToolContext for BashTool
impl Copy for BashTool
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