pub struct EditTool;Trait Implementations§
Source§impl AgentTool for EditTool
impl AgentTool for EditTool
fn name(&self) -> &str
Source§fn requires_permission(&self) -> bool
fn requires_permission(&self) -> bool
Whether the tool requires user permission by default. Read-only tools
(
read, ls, grep, glob) return false; mutating or side-effecting
tools (bash, write, edit) return true.fn description(&self) -> &str
fn parameters(&self) -> Value
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
_id: &'life1 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<AgentToolResult, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn label(&self) -> &str
Auto Trait Implementations§
impl Freeze for EditTool
impl RefUnwindSafe for EditTool
impl Send for EditTool
impl Sync for EditTool
impl Unpin for EditTool
impl UnsafeUnpin for EditTool
impl UnwindSafe 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