pub struct ToolInvocableAdapter { /* private fields */ }Implementations§
Source§impl ToolInvocableAdapter
impl ToolInvocableAdapter
pub fn new( tool: Arc<dyn Tool>, permissions: Arc<dyn PermissionChecker>, resources: Arc<dyn ToolResources>, ) -> Self
Trait Implementations§
Source§impl Invocable for ToolInvocableAdapter
impl Invocable for ToolInvocableAdapter
fn spec(&self) -> &InvocableSpec
fn invoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: InvocableRequest,
ctx: &'life1 mut CapabilityContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<InvocableResult, CapabilityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !Freeze for ToolInvocableAdapter
impl !RefUnwindSafe for ToolInvocableAdapter
impl Send for ToolInvocableAdapter
impl Sync for ToolInvocableAdapter
impl Unpin for ToolInvocableAdapter
impl UnsafeUnpin for ToolInvocableAdapter
impl !UnwindSafe for ToolInvocableAdapter
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