code: async def set_agent(self, msg, context):
          
  
          service = msg.get('name')
          client = context.user_data
  
          self.service_manager.set_agent(service, client)
docs: Mark a client as the RPC agent for a service.