pub struct CompositeToolPort { /* private fields */ }Expand description
A ToolPort that delegates to multiple inner ports.
Each inner port is identified by a server_id (e.g. "filesystem").
Tool IDs are expected to be already namespaced (e.g. "mcp/filesystem/read_file").
Routing uses the first inner port whose tool list contains the requested name.
Implementations§
Trait Implementations§
Source§impl Debug for CompositeToolPort
impl Debug for CompositeToolPort
Source§impl ToolPort for CompositeToolPort
impl ToolPort for CompositeToolPort
Auto Trait Implementations§
impl Freeze for CompositeToolPort
impl !RefUnwindSafe for CompositeToolPort
impl Send for CompositeToolPort
impl Sync for CompositeToolPort
impl Unpin for CompositeToolPort
impl UnsafeUnpin for CompositeToolPort
impl !UnwindSafe for CompositeToolPort
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: 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToolCatalogPort for T
impl<T> ToolCatalogPort for T
Source§impl<T> ToolExecutorPort for T
impl<T> ToolExecutorPort for T
Source§impl<T> ToolPortExt for Twhere
T: ToolPort,
impl<T> ToolPortExt for Twhere
T: ToolPort,
Source§impl<T> ToolPortServiceExt for Twhere
T: ToolPort + 'static,
impl<T> ToolPortServiceExt for Twhere
T: ToolPort + 'static,
Source§fn into_tool_service(self: Arc<T>) -> ToolService
fn into_tool_service(self: Arc<T>) -> ToolService
Convert this tool port into a
tower::Service for tool execution.Source§fn into_tool_list_service(self: Arc<T>) -> ToolListService
fn into_tool_list_service(self: Arc<T>) -> ToolListService
Convert this tool port into a
tower::Service for tool listing.