pub enum AgentScope {
Browser,
Page,
}Expand description
Scope of an agent run.
AgentScope::Browser— full browser control (default; identical to prior behavior).AgentScope::Page— restricted to the current page/tab: the system prompt gains a page-scope addendum and a best-effort guardrail script blockswindow.open/target="_blank"popups.
Variants§
Trait Implementations§
Source§impl Clone for AgentScope
impl Clone for AgentScope
Source§fn clone(&self) -> AgentScope
fn clone(&self) -> AgentScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AgentScope
Source§impl Debug for AgentScope
impl Debug for AgentScope
Source§impl Default for AgentScope
impl Default for AgentScope
Source§fn default() -> AgentScope
fn default() -> AgentScope
Returns the “default value” for a type. Read more
impl Eq for AgentScope
Source§impl PartialEq for AgentScope
impl PartialEq for AgentScope
impl StructuralPartialEq for AgentScope
Auto Trait Implementations§
impl Freeze for AgentScope
impl RefUnwindSafe for AgentScope
impl Send for AgentScope
impl Sync for AgentScope
impl Unpin for AgentScope
impl UnsafeUnpin for AgentScope
impl UnwindSafe for AgentScope
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§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.