pub struct FileListTool { /* private fields */ }Expand description
List files (non-recursive) under a directory.
Implementations§
Trait Implementations§
Source§impl Tool for FileListTool
impl Tool for FileListTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Description shown to the LLM.
Source§fn args_schema(&self) -> Option<Value>
fn args_schema(&self) -> Option<Value>
Optional JSON Schema for the parameters. None = no parameters.
Source§fn _run<'life0, 'async_trait>(
&'life0 self,
input: ToolInput,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn _run<'life0, 'async_trait>(
&'life0 self,
input: ToolInput,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the tool with the given input.
Source§fn return_direct(&self) -> bool
fn return_direct(&self) -> bool
Hint to the agent: if true, return the tool result directly
instead of looping back to the LLM.
Auto Trait Implementations§
impl Freeze for FileListTool
impl !RefUnwindSafe for FileListTool
impl Send for FileListTool
impl Sync for FileListTool
impl Unpin for FileListTool
impl UnsafeUnpin for FileListTool
impl !UnwindSafe for FileListTool
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