pub enum BrowserProfile {
Minimal,
FormFilling,
Scraping,
Full,
}Expand description
Pre-configured tool profiles for common use cases.
Instead of using every tool (which overwhelms LLM context windows),
select a profile that matches your agent’s task. No profile includes
browser_evaluate_js; enable it with
BrowserToolset::with_evaluate_js.
§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(); // 19 tools instead of 45Variants§
Minimal
19 tools: navigation + interaction + extraction + wait + screenshot. Best for simple browsing tasks.
FormFilling
19 tools: same categories as Minimal (navigation + interaction + extraction + wait + screenshot). Best for form-filling agents.
Scraping
13 tools: navigation + extraction + screenshot + scroll, hover, and alert handling. Best for data extraction / scraping agents (no interaction tools).
Full
45 tools: every tool except browser_evaluate_js. Use only when the agent
needs full browser control.
Trait Implementations§
Source§impl Clone for BrowserProfile
impl Clone for BrowserProfile
impl Copy for BrowserProfile
Source§impl Debug for BrowserProfile
impl Debug for BrowserProfile
impl Eq for BrowserProfile
Source§impl PartialEq for BrowserProfile
impl PartialEq 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.