pub enum BrowserProfile {
Minimal,
FormFilling,
Scraping,
Full,
}Expand description
Pre-configured tool profiles for common use cases.
Instead of using all 46 tools (which overwhelms LLM context windows), select a profile that matches your agent’s task.
§Example
ⓘ
use adk_browser::{BrowserToolset, BrowserProfile, BrowserSession, BrowserConfig};
use std::sync::Arc;
let browser = Arc::new(BrowserSession::new(BrowserConfig::default()));
let toolset = BrowserToolset::with_profile(browser, BrowserProfile::FormFilling);
let tools = toolset.all_tools(); // 8 tools instead of 46Variants§
Minimal
6 tools: navigate, click, type, extract_text, wait_for_element, screenshot. Best for simple browsing tasks.
FormFilling
8 tools: Minimal + select, clear. Best for form-filling agents.
Scraping
7 tools: navigate, extract_text, extract_attribute, extract_links, page_info, screenshot, scroll. Best for data extraction / scraping agents.
Full
All 46 tools. Use only when the agent needs full browser control.
Trait Implementations§
Source§impl Clone for BrowserProfile
impl Clone for BrowserProfile
Source§fn clone(&self) -> BrowserProfile
fn clone(&self) -> BrowserProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowserProfile
impl Debug for BrowserProfile
Source§impl PartialEq for BrowserProfile
impl PartialEq for BrowserProfile
impl Copy for BrowserProfile
impl Eq for BrowserProfile
impl StructuralPartialEq for BrowserProfile
Auto Trait Implementations§
impl Freeze for BrowserProfile
impl RefUnwindSafe for BrowserProfile
impl Send for BrowserProfile
impl Sync for BrowserProfile
impl Unpin for BrowserProfile
impl UnsafeUnpin for BrowserProfile
impl UnwindSafe for BrowserProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.