pub struct BrowserToolset { /* private fields */ }Expand description
A toolset that provides all browser automation tools.
Use this to add all browser tools to an agent at once, or use individual tools for more control.
Implementations§
Source§impl BrowserToolset
impl BrowserToolset
Sourcepub fn new(browser: Arc<BrowserSession>) -> Self
pub fn new(browser: Arc<BrowserSession>) -> Self
Create a new toolset with all tools enabled.
Enable or disable navigation tools.
Sourcepub fn with_interaction(self, enabled: bool) -> Self
pub fn with_interaction(self, enabled: bool) -> Self
Enable or disable interaction tools.
Sourcepub fn with_extraction(self, enabled: bool) -> Self
pub fn with_extraction(self, enabled: bool) -> Self
Enable or disable extraction tools.
Sourcepub fn with_screenshot(self, enabled: bool) -> Self
pub fn with_screenshot(self, enabled: bool) -> Self
Enable or disable screenshot tool.
Enable or disable cookie management tools.
Sourcepub fn with_windows(self, enabled: bool) -> Self
pub fn with_windows(self, enabled: bool) -> Self
Enable or disable window/tab management tools.
Sourcepub fn with_frames(self, enabled: bool) -> Self
pub fn with_frames(self, enabled: bool) -> Self
Enable or disable frame/iframe management tools.
Sourcepub fn with_actions(self, enabled: bool) -> Self
pub fn with_actions(self, enabled: bool) -> Self
Enable or disable advanced action tools.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BrowserToolset
impl !RefUnwindSafe for BrowserToolset
impl Send for BrowserToolset
impl Sync for BrowserToolset
impl Unpin for BrowserToolset
impl !UnwindSafe for BrowserToolset
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more