pub fn register() -> Result<(), String>
Register the agent. Re-registering one that is registered is not an error.