pub struct MCPToolkit<TCtx>{ /* private fields */ }Expand description
Toolkit implementation backed by the Model Context Protocol.
Implementations§
Trait Implementations§
Source§impl<TCtx> Toolkit<TCtx> for MCPToolkit<TCtx>
impl<TCtx> Toolkit<TCtx> for MCPToolkit<TCtx>
Source§fn create_session<'a>(
&'a self,
context: &'a TCtx,
) -> BoxFuture<'a, Result<Box<dyn ToolkitSession<TCtx> + Send + Sync>, BoxedError>>
fn create_session<'a>( &'a self, context: &'a TCtx, ) -> BoxFuture<'a, Result<Box<dyn ToolkitSession<TCtx> + Send + Sync>, BoxedError>>
Create a new toolkit session for the supplied context value.
Implementations should also initialize the session with instructions and
tools.
Auto Trait Implementations§
impl<TCtx> Freeze for MCPToolkit<TCtx>
impl<TCtx> !RefUnwindSafe for MCPToolkit<TCtx>
impl<TCtx> Send for MCPToolkit<TCtx>
impl<TCtx> Sync for MCPToolkit<TCtx>
impl<TCtx> Unpin for MCPToolkit<TCtx>
impl<TCtx> !UnwindSafe for MCPToolkit<TCtx>
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