pub struct LsTool {
pub name: String,
pub state: Arc<RwLock<AgentStateSnapshot>>,
}
Fields§
§name: String
§state: Arc<RwLock<AgentStateSnapshot>>
Trait Implementations§
Source§impl ToolHandle for LsTool
impl ToolHandle for LsTool
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 LsTool
impl RefUnwindSafe for LsTool
impl Send for LsTool
impl Sync for LsTool
impl Unpin for LsTool
impl UnwindSafe for LsTool
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