def make_request(self, functionality: str, request: dict):
        """
        Format and send an app request message to the hub.

        Args:
            functionality (str): The functionality to be requested.
            request (dict): The request body in dictionary format.

        Returns:
            tuple: A tuple containing the message type and the response from the hub.

        """
        # format the app request message
        app_request_message = Message.app_request(self.spoke_id, functionality, request)
        self.child_sock.send(app_request_message)
        response = self.child_sock.recv()

        return response["message_type"], response["response"]

        Format and send an app request message to the hub.

        Args:
            functionality (str): The functionality to be requested.
            request (dict): The request body in dictionary format.

        Returns:
            tuple: A tuple containing the message type and the response from the hub.

        
llama-index-packs/llama-index-packs-secgpt/llama_index/packs/secgpt/spoke_operator.py