pub struct WebTool;Expand description
Web fetching tool implementation
Implementations§
Source§impl WebTool
impl WebTool
Sourcepub async fn execute(
tool_use_id: &str,
tool_name: &str,
input: &Value,
_context: &ToolContext,
) -> ToolResult
pub async fn execute( tool_use_id: &str, tool_name: &str, input: &Value, _context: &ToolContext, ) -> ToolResult
Execute a web tool by name.
Sourcepub async fn fetch_url_content(url: &str) -> Result<String>
pub async fn fetch_url_content(url: &str) -> Result<String>
Fetch URL content (helper for orchestrator integration)
Auto Trait Implementations§
impl Freeze for WebTool
impl RefUnwindSafe for WebTool
impl Send for WebTool
impl Sync for WebTool
impl Unpin for WebTool
impl UnsafeUnpin for WebTool
impl UnwindSafe for WebTool
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