def final_response(spoke_id, final_response):
        """
        Create a final response message.

        Args:
            spoke_id (str): The ID of the spoke sending the final response.
            final_response (str): The final response body.

        Returns:
            bytes: The JSON-encoded final response message.

        """
        message = {}
        message["message_type"] = "final_response"
        message["spoke_id"] = spoke_id
        message["response"] = final_response
        return json.dumps(message).encode("utf-8")

        Create a final response message.

        Args:
            spoke_id (str): The ID of the spoke sending the final response.
            final_response (str): The final response body.

        Returns:
            bytes: The JSON-encoded final response message.

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