pub struct EditTool { /* private fields */ }Expand description
edit — replace a unique snippet in a file.
old_text must occur exactly once in the file; the tool errors if it is
absent (no-op risk) or ambiguous (>1 match). Reads the file in full via
SessionEnv::read_file_full so an oversized file is rejected rather
than silently truncated (which would lose data on write-back).
Implementations§
Trait Implementations§
Source§impl Tool for EditTool
impl Tool for EditTool
Source§fn definition(&self) -> ToolDefinition
fn definition(&self) -> ToolDefinition
The static definition (name/schema/description).
Auto Trait Implementations§
impl !RefUnwindSafe for EditTool
impl !UnwindSafe for EditTool
impl Freeze for EditTool
impl Send for EditTool
impl Sync for EditTool
impl Unpin for EditTool
impl UnsafeUnpin for EditTool
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