pub struct BashTool { /* private fields */ }Expand description
Virtual bash interpreter implementing the Tool trait
Implementations§
Trait Implementations§
Source§impl Tool for BashTool
impl Tool for BashTool
Source§fn short_description(&self) -> &str
fn short_description(&self) -> &str
One-line description for tool listings
Source§fn description(&self) -> String
fn description(&self) -> String
Full description, may include dynamic config info
Source§fn system_prompt(&self) -> String
fn system_prompt(&self) -> String
Condensed description for system prompts (token-efficient)
Source§fn input_schema(&self) -> Value
fn input_schema(&self) -> Value
JSON Schema for input validation
Source§fn output_schema(&self) -> Value
fn output_schema(&self) -> Value
JSON Schema for output structure
Source§fn execute<'life0, 'async_trait>(
&'life0 mut self,
req: ToolRequest,
) -> Pin<Box<dyn Future<Output = ToolResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 mut self,
req: ToolRequest,
) -> Pin<Box<dyn Future<Output = ToolResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the tool
Source§fn execute_with_status<'life0, 'async_trait>(
&'life0 mut self,
req: ToolRequest,
status_callback: Box<dyn FnMut(ToolStatus) + Send>,
) -> Pin<Box<dyn Future<Output = ToolResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_status<'life0, 'async_trait>(
&'life0 mut self,
req: ToolRequest,
status_callback: Box<dyn FnMut(ToolStatus) + Send>,
) -> Pin<Box<dyn Future<Output = ToolResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute with status callbacks for progress tracking
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