pub struct FindFilesContainingTool { /* private fields */ }Expand description
Tool for finding files containing text matching a regex pattern.
Implementations§
Source§impl FindFilesContainingTool
impl FindFilesContainingTool
pub fn new(fs: FilesystemGateway) -> Self
Trait Implementations§
Source§impl Clone for FindFilesContainingTool
impl Clone for FindFilesContainingTool
Source§fn clone(&self) -> FindFilesContainingTool
fn clone(&self) -> FindFilesContainingTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl LlmTool for FindFilesContainingTool
impl LlmTool for FindFilesContainingTool
Source§fn descriptor(&self) -> ToolDescriptor
fn descriptor(&self) -> ToolDescriptor
Get tool descriptor for LLM
Source§fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: &'life1 HashMap<String, Value>,
_ctx: &'life2 ToolRunCtx,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: &'life1 HashMap<String, Value>,
_ctx: &'life2 ToolRunCtx,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute the tool with given arguments.
Auto Trait Implementations§
impl Freeze for FindFilesContainingTool
impl RefUnwindSafe for FindFilesContainingTool
impl Send for FindFilesContainingTool
impl Sync for FindFilesContainingTool
impl Unpin for FindFilesContainingTool
impl UnsafeUnpin for FindFilesContainingTool
impl UnwindSafe for FindFilesContainingTool
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