deeppavlov/utils/alexa/conversation.py
def _handle_unsupported(self, request: dict) -> dict:
        """Handles all unsupported types of Alexa requests. Returns standard message.

        Args:
            request: Alexa request.
        Returns:
            response: "response" part of response dict conforming Alexa specification.
        """
        response = {
            'response': {
                'shouldEndSession': False,
                'outputSpeech': {
                    'type': 'PlainText',
                    'text': self.config['unsupported_message']
                },
                'card': {
                    'type': 'Simple',
                    'content': self.config['unsupported_message']
                }
            }
        }

        response = self._generate_response(response, request)

        return response
def _handle_unsupported(self, request: dict) -> dict:
        """Handles all unsupported types of Alexa requests. Returns standard message.

        Args:
            request: Alexa request.
        Returns:
            response: "response" part of response dict conforming Alexa specification.
        """
        response = {
            'response': {
                'shouldEndSession': False,
                'outputSpeech': {
                    'type': 'PlainText',
                    'text': self.config['unsupported_message']
                },
                'card': {
                    'type': 'Simple',
                    'content': self.config['unsupported_message']
                }
            }
        }

        response = self._generate_response(response, request)

        return response
Handles all unsupported types of Alexa requests. Returns standard message.

        Args:
            request: Alexa request.
        Returns:
            response: "response" part of response dict conforming Alexa specification.