pub struct WebFetchTool { /* private fields */ }Expand description
Client executor for the stable web_fetch tool contract.
Implementations§
Source§impl WebFetchTool
impl WebFetchTool
Sourcepub fn new(provider: Arc<dyn FetchProvider>) -> Self
pub fn new(provider: Arc<dyn FetchProvider>) -> Self
Creates a client fetch executor.
Trait Implementations§
Source§impl Clone for WebFetchTool
impl Clone for WebFetchTool
Source§impl Debug for WebFetchTool
impl Debug for WebFetchTool
Source§impl ToolExecutor for WebFetchTool
impl ToolExecutor for WebFetchTool
Source§fn execute(
&self,
invocation: ValidatedToolInvocation,
cancellation: CancellationScope,
) -> BoxToolExecutionStream
fn execute( &self, invocation: ValidatedToolInvocation, cancellation: CancellationScope, ) -> BoxToolExecutionStream
Creates a lazy execution stream owned by the caller.
Source§fn preview(
&self,
_invocation: &ValidatedToolInvocation,
) -> Option<ToolPresentation>
fn preview( &self, _invocation: &ValidatedToolInvocation, ) -> Option<ToolPresentation>
Produces an optional, non-durable preview for one validated invocation. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for WebFetchTool
impl !UnwindSafe for WebFetchTool
impl Freeze for WebFetchTool
impl Send for WebFetchTool
impl Sync for WebFetchTool
impl Unpin for WebFetchTool
impl UnsafeUnpin for WebFetchTool
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