pub struct WebTools { /* private fields */ }Expand description
Shared state container for web tools.
Wraps shared HTTP clients, lazy-initialized Anthropic client, and configuration for reuse across MCP calls.
Implementations§
Source§impl WebTools
impl WebTools
Sourcepub fn with_config(
cfg: WebRetrievalConfig,
exa_cfg: &ExaServiceConfig,
anthropic_cfg: AnthropicServiceConfig,
) -> Self
pub fn with_config( cfg: WebRetrievalConfig, exa_cfg: &ExaServiceConfig, anthropic_cfg: AnthropicServiceConfig, ) -> Self
Create a new WebTools instance with custom configuration.
§Panics
Panics if the reqwest HTTP client cannot be built.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WebTools
impl !RefUnwindSafe for WebTools
impl Send for WebTools
impl Sync for WebTools
impl Unpin for WebTools
impl UnsafeUnpin for WebTools
impl !UnwindSafe for WebTools
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