pub struct RouterToolCaller { /* private fields */ }Expand description
A wrapper that implements ToolCaller for a shared Router.
This allows handlers to call other tools from within tool/resource/prompt handlers, enabling cross-component access.
Implementations§
Source§impl RouterToolCaller
impl RouterToolCaller
Sourcepub fn new(router: Arc<Router>, session_state: SessionState) -> Self
pub fn new(router: Arc<Router>, session_state: SessionState) -> Self
Creates a new tool caller with the given router and session state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouterToolCaller
impl !RefUnwindSafe for RouterToolCaller
impl Send for RouterToolCaller
impl Sync for RouterToolCaller
impl Unpin for RouterToolCaller
impl !UnwindSafe for RouterToolCaller
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).