def functionality_denial_response(spoke_id, functionality_request):
        """
        Create a functionality denial response message indicating the requested functionality refuses to respond.

        Args:
            spoke_id (str): The ID of the spoke sending the response.
            functionality_request (str): The functionality request that is being denied.

        Returns:
            bytes: The JSON-encoded functionality denial response message.

        """
        message = {}
        message["message_type"] = "functionality_denial_response"
        message["spoke_id"] = spoke_id
        message["response"] = functionality_request + " refuses to respond"
        return json.dumps(message).encode("utf-8")

        Create a functionality denial response message indicating the requested functionality refuses to respond.

        Args:
            spoke_id (str): The ID of the spoke sending the response.
            functionality_request (str): The functionality request that is being denied.

        Returns:
            bytes: The JSON-encoded functionality denial response message.

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