def function_probe_response(spoke_id, function):
        """
        Create a function probe response message.

        Args:
            spoke_id (str): The ID of the spoke sending the response.
            function (str): The functionality being offered (in JSON format).

        Returns:
            bytes: The JSON-encoded function probe response message.

        """
        message = {}
        message["message_type"] = "function_probe_response"
        message["spoke_id"] = spoke_id
        message["functionality_offered"] = function  # should be a json format
        return json.dumps(message).encode("utf-8")

        Create a function probe response message.

        Args:
            spoke_id (str): The ID of the spoke sending the response.
            function (str): The functionality being offered (in JSON format).

        Returns:
            bytes: The JSON-encoded function probe response message.

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