pub struct SearchTool {
pub root: Option<String>,
pub max_results: usize,
pub timeout: Duration,
}Expand description
Search files using grep (or ripgrep if available).
Fields§
§root: Option<String>Root directory to search in
max_results: usizeMax results to return
timeout: DurationTimeout
Implementations§
Trait Implementations§
Source§impl AgentTool for SearchTool
impl AgentTool for SearchTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Description for the LLM
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
JSON Schema for parameters
Auto Trait Implementations§
impl Freeze for SearchTool
impl RefUnwindSafe for SearchTool
impl Send for SearchTool
impl Sync for SearchTool
impl Unpin for SearchTool
impl UnsafeUnpin for SearchTool
impl UnwindSafe for SearchTool
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