pub struct GrepSearchTool;Expand description
GrepSearchTool searches file contents for lines matching a regex pattern. Supports optional file glob filter (include). Returns up to 200 matching lines.
Trait Implementations§
Source§impl Tool for GrepSearchTool
impl Tool for GrepSearchTool
fn name(&self) -> &str
fn description(&self) -> &str
fn parameters_schema(&self) -> Value
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for GrepSearchTool
impl RefUnwindSafe for GrepSearchTool
impl Send for GrepSearchTool
impl Sync for GrepSearchTool
impl Unpin for GrepSearchTool
impl UnsafeUnpin for GrepSearchTool
impl UnwindSafe for GrepSearchTool
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