rpc: use the user agent constant