pub struct ApplyPatchTool;Expand description
Apply a Codex-style apply_patch envelope — Codex’s primary edit
mechanism, richer than edit_file’s single string replace. Supports
Add File, Delete File, and Update File (with -/+/context hunks and
an optional *** Move to: rename) in one atomic-ish call.
Trait Implementations§
Source§impl Tool for ApplyPatchTool
impl Tool for ApplyPatchTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
The built-in description. May be overridden via
crate::Config.Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema describing the tool’s input object.
Auto Trait Implementations§
impl Freeze for ApplyPatchTool
impl RefUnwindSafe for ApplyPatchTool
impl Send for ApplyPatchTool
impl Sync for ApplyPatchTool
impl Unpin for ApplyPatchTool
impl UnsafeUnpin for ApplyPatchTool
impl UnwindSafe for ApplyPatchTool
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