pub struct WriteTool;Trait Implementations§
Source§impl AgentTool for WriteTool
impl AgentTool for WriteTool
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 WriteTool
impl RefUnwindSafe for WriteTool
impl Send for WriteTool
impl Sync for WriteTool
impl Unpin for WriteTool
impl UnsafeUnpin for WriteTool
impl UnwindSafe for WriteTool
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