pub struct GlobTool { /* private fields */ }Expand description
Tool for finding files matching glob patterns within allowed directories.
Implementations§
Source§impl GlobTool
impl GlobTool
Sourcepub fn new(resolver: AllowedPathResolver) -> Self
pub fn new(resolver: AllowedPathResolver) -> Self
Creates a new glob tool with a shared resolver.
See ReadTool::new for usage example.
Trait Implementations§
Source§impl Tool for GlobTool
impl Tool for GlobTool
Source§type Output = GlobOutput
type Output = GlobOutput
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.
Auto Trait Implementations§
impl Freeze for GlobTool
impl RefUnwindSafe for GlobTool
impl Send for GlobTool
impl Sync for GlobTool
impl Unpin for GlobTool
impl UnwindSafe for GlobTool
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