pub fn parse_agent_role(topic: &str) -> &str