Skip to main content

require_agent_env

Function require_agent_env 

Source
pub(crate) fn require_agent_env(
    local_url: &str,
    auth_key: &str,
    block_id: &str,
) -> Result<()>
Expand description

Guard for the self-scoped agent-API verbs: they need the sidecar URL + auth key to reach it, and the caller’s block id to resolve “my own” tab/pane/window/workspace.