pub struct WriteTool { /* private fields */ }Expand description
The write tool.
Implementations§
Trait Implementations§
Source§impl AgentTool for WriteTool
impl AgentTool for WriteTool
Source§fn meta(&self) -> &ToolDefinitionMeta
fn meta(&self) -> &ToolDefinitionMeta
Static metadata.
Source§fn execute(
&self,
call: ToolInvocation,
_updates: UpdateSink,
cancel: CancellationToken,
) -> BoxFuture<'static, Result<AgentToolResult, ToolError>>
fn execute( &self, call: ToolInvocation, _updates: UpdateSink, cancel: CancellationToken, ) -> BoxFuture<'static, Result<AgentToolResult, ToolError>>
Runs the call.
Err becomes an error result with the error text.Auto Trait Implementations§
impl !RefUnwindSafe for WriteTool
impl !UnwindSafe for WriteTool
impl Freeze for WriteTool
impl Send for WriteTool
impl Sync for WriteTool
impl Unpin for WriteTool
impl UnsafeUnpin 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