pub struct McpPrefetchDispatcher { /* private fields */ }Expand description
Production PrefetchDispatcher backed by an Arc<McpServer>.
Implementations§
Trait Implementations§
Source§impl PrefetchDispatcher for McpPrefetchDispatcher
impl PrefetchDispatcher for McpPrefetchDispatcher
Source§fn dispatch<'life0, 'life1, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<String, PrefetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn dispatch<'life0, 'life1, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<String, PrefetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute
tool_name with args out-of-band and return the
response body (the same string the LLM would receive). Errors
are logged at WARN by the engine and counted as wasted, never
surfaced to the LLM stream.Auto Trait Implementations§
impl Freeze for McpPrefetchDispatcher
impl !RefUnwindSafe for McpPrefetchDispatcher
impl Send for McpPrefetchDispatcher
impl Sync for McpPrefetchDispatcher
impl Unpin for McpPrefetchDispatcher
impl UnsafeUnpin for McpPrefetchDispatcher
impl !UnwindSafe for McpPrefetchDispatcher
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