pub fn parse_agent_id(topic: &str) -> Option<&str>