pub struct ReadFileTool {
pub max_bytes: usize,
pub allowed_paths: Vec<String>,
}Expand description
Read a file’s contents. Supports line range for large files.
Fields§
§max_bytes: usizeMax file size to read (prevents OOM)
allowed_paths: Vec<String>Allowed directory roots (empty = no restriction)
Implementations§
Source§impl ReadFileTool
impl ReadFileTool
Trait Implementations§
Source§impl AgentTool for ReadFileTool
impl AgentTool for ReadFileTool
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 ReadFileTool
impl RefUnwindSafe for ReadFileTool
impl Send for ReadFileTool
impl Sync for ReadFileTool
impl Unpin for ReadFileTool
impl UnsafeUnpin for ReadFileTool
impl UnwindSafe for ReadFileTool
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