pub struct WriteTodosTool {
pub name: String,
pub state: Arc<RwLock<AgentStateSnapshot>>,
}
Fields§
§name: String
§state: Arc<RwLock<AgentStateSnapshot>>
Trait Implementations§
Source§impl Clone for WriteTodosTool
impl Clone for WriteTodosTool
Source§fn clone(&self) -> WriteTodosTool
fn clone(&self) -> WriteTodosTool
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 WriteTodosTool
impl ToolHandle for WriteTodosTool
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 WriteTodosTool
impl RefUnwindSafe for WriteTodosTool
impl Send for WriteTodosTool
impl Sync for WriteTodosTool
impl Unpin for WriteTodosTool
impl UnwindSafe for WriteTodosTool
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