pub struct GrepTool<const LINE_NUMBERS: bool = true>;Expand description
Tool for searching file contents using regex patterns.
Implementations§
Trait Implementations§
Source§impl<const LINE_NUMBERS: bool> Tool for GrepTool<LINE_NUMBERS>
impl<const LINE_NUMBERS: bool> Tool for GrepTool<LINE_NUMBERS>
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<const LINE_NUMBERS: bool> ToolContext for GrepTool<LINE_NUMBERS>
impl<const LINE_NUMBERS: bool> ToolContext for GrepTool<LINE_NUMBERS>
Auto Trait Implementations§
impl<const LINE_NUMBERS: bool> Freeze for GrepTool<LINE_NUMBERS>
impl<const LINE_NUMBERS: bool> RefUnwindSafe for GrepTool<LINE_NUMBERS>
impl<const LINE_NUMBERS: bool> Send for GrepTool<LINE_NUMBERS>
impl<const LINE_NUMBERS: bool> Sync for GrepTool<LINE_NUMBERS>
impl<const LINE_NUMBERS: bool> Unpin for GrepTool<LINE_NUMBERS>
impl<const LINE_NUMBERS: bool> UnwindSafe for GrepTool<LINE_NUMBERS>
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