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§
Source§impl ToolCaller for RouterToolCaller
impl ToolCaller for RouterToolCaller
Auto Trait Implementations§
impl !RefUnwindSafe for RouterToolCaller
impl !UnwindSafe for RouterToolCaller
impl Freeze for RouterToolCaller
impl Send for RouterToolCaller
impl Sync for RouterToolCaller
impl Unpin for RouterToolCaller
impl UnsafeUnpin 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).
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more