deeppavlov/utils/alexa/conversation.py
def _handle_launch(self, request: dict) -> dict:
        """Handles LaunchRequest Alexa request.

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

        response = self._generate_response(response, request)

        return response
def _handle_launch(self, request: dict) -> dict:
        """Handles LaunchRequest Alexa request.

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

        response = self._generate_response(response, request)

        return response
Handles LaunchRequest Alexa request.

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