pub struct WebfetchToolWithMcp { /* private fields */ }Expand description
Webfetch tool with MCP integration
Implementations§
Source§impl WebfetchToolWithMcp
impl WebfetchToolWithMcp
Sourcepub fn new(mcp_client: Option<MCPClient>) -> Result<Self, ToolError>
pub fn new(mcp_client: Option<MCPClient>) -> Result<Self, ToolError>
Create a new webfetch tool with MCP integration
Sourcepub async fn fetch(&self, input: WebfetchInput) -> ToolResult<WebfetchOutput>
pub async fn fetch(&self, input: WebfetchInput) -> ToolResult<WebfetchOutput>
Fetch content with MCP fallback
Auto Trait Implementations§
impl Freeze for WebfetchToolWithMcp
impl !RefUnwindSafe for WebfetchToolWithMcp
impl Send for WebfetchToolWithMcp
impl Sync for WebfetchToolWithMcp
impl Unpin for WebfetchToolWithMcp
impl !UnwindSafe for WebfetchToolWithMcp
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