pub fn format_agent_url(url: &AgentUrl) -> Result<String>
Formats an Agent URL. agent_id is valid by construction.
agent_id