pub struct McpClientPlugin<T, G, A> { /* private fields */ }Expand description
Trusted plugin exposing the endpoint’s allowlisted tools to the loop.
Implementations§
Trait Implementations§
Source§impl<T, G, A> AgentPlugin for McpClientPlugin<T, G, A>
impl<T, G, A> AgentPlugin for McpClientPlugin<T, G, A>
Source§fn manifest(&self) -> &PluginManifest
fn manifest(&self) -> &PluginManifest
Static manifest.
Source§fn lease(&self, _: &PluginMountContext, _: &Value) -> Box<dyn PluginLease>
fn lease(&self, _: &PluginMountContext, _: &Value) -> Box<dyn PluginLease>
Creates the cleanup lease before activation performs any side effects.
The lease must be safe to unmount before, during, or after activation.
Source§fn activate<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_scope: &'life1 PluginMountContext,
_: &'life2 Value,
registrar: &'life3 mut AgentRegistrar<'life4>,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn activate<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_scope: &'life1 PluginMountContext,
_: &'life2 Value,
registrar: &'life3 mut AgentRegistrar<'life4>,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Contribute prompts, tools, contexts and hooks for one mount.
Auto Trait Implementations§
impl<T, G, A> Freeze for McpClientPlugin<T, G, A>
impl<T, G, A> RefUnwindSafe for McpClientPlugin<T, G, A>
impl<T, G, A> Send for McpClientPlugin<T, G, A>
impl<T, G, A> Sync for McpClientPlugin<T, G, A>
impl<T, G, A> Unpin for McpClientPlugin<T, G, A>
impl<T, G, A> UnsafeUnpin for McpClientPlugin<T, G, A>
impl<T, G, A> UnwindSafe for McpClientPlugin<T, G, A>
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