pub struct EditFileTool {
pub name: String,
pub state: Arc<RwLock<AgentStateSnapshot>>,
}
Fields§
§name: String
§state: Arc<RwLock<AgentStateSnapshot>>
Trait Implementations§
Source§impl Clone for EditFileTool
impl Clone for EditFileTool
Source§fn clone(&self) -> EditFileTool
fn clone(&self) -> EditFileTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ToolHandle for EditFileTool
impl ToolHandle for EditFileTool
Source§fn invoke<'life0, 'async_trait>(
&'life0 self,
invocation: ToolInvocation,
) -> Pin<Box<dyn Future<Output = Result<ToolResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invoke<'life0, 'async_trait>(
&'life0 self,
invocation: ToolInvocation,
) -> Pin<Box<dyn Future<Output = Result<ToolResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes the tool given the invocation payload.
Auto Trait Implementations§
impl Freeze for EditFileTool
impl RefUnwindSafe for EditFileTool
impl Send for EditFileTool
impl Sync for EditFileTool
impl Unpin for EditFileTool
impl UnwindSafe for EditFileTool
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