pub struct CorpusTools {
pub search: SearchTool,
pub find: FindTool,
pub read: ReadTool,
pub list: ListTool,
}Expand description
Bundle of the four corpus tools, all sharing one CorpusRoot.
Used by crate::agent to register the full toolset on an agent in one
call, and available to callers who want the tools individually.
Fields§
§search: SearchToolThe regex search tool.
find: FindToolThe glob find tool.
read: ReadToolThe bounded read tool.
list: ListToolThe directory listing tool.
Implementations§
Source§impl CorpusTools
impl CorpusTools
Sourcepub fn new(corpus: CorpusRoot) -> Self
pub fn new(corpus: CorpusRoot) -> Self
Build the full toolset over a shared corpus root.
Trait Implementations§
Source§impl Clone for CorpusTools
impl Clone for CorpusTools
Source§fn clone(&self) -> CorpusTools
fn clone(&self) -> CorpusTools
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 moreAuto Trait Implementations§
impl Freeze for CorpusTools
impl RefUnwindSafe for CorpusTools
impl Send for CorpusTools
impl Sync for CorpusTools
impl Unpin for CorpusTools
impl UnsafeUnpin for CorpusTools
impl UnwindSafe for CorpusTools
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