Skip to main content

for_agent_open

Function for_agent_open 

Source
pub(crate) fn for_agent_open(
    state: &AppState,
    meta: &mut MetaMapType,
    owner: &str,
    requested: Option<&str>,
    from_container: bool,
) -> Result<(), String>
Expand description

OpenBrowser’s profile: give the agent’s new tab the identity it asked for, checked like any new tab (the platform, the Incognito cap). With nothing asked, every agent, native or container, browses as its own profile (requested_by_container for the container’s other rules).