deeppavlov/utils/alexa/conversation.py
def _act(self, utterance: str) -> list:
        """Infers DeepPavlov agent with raw user input extracted from Alexa request.

        Args:
            utterance: Raw user input extracted from Alexa request.
        Returns:
            response: DeepPavlov agent response.
        """
        if self.stateful:
            utterance = [[utterance], [self.key]]
        else:
            utterance = [[utterance]]

        agent_response: list = self.agent(*utterance)

        return agent_response
def _act(self, utterance: str) -> list:
        if self.stateful:
            utterance = [[utterance], [self.key]]
        else:
            utterance = [[utterance]]

        agent_response: list = self.agent(*utterance)

        return agent_response
def _act ( self , utterance : str ) -> list : if self . stateful : utterance = [ [ utterance ] , [ self . key ] ] else : utterance = [ [ utterance ] ] agent_response : list = self . agent ( * utterance ) return agent_response
Infers DeepPavlov agent with raw user input extracted from Alexa request.

        Args:
            utterance: Raw user input extracted from Alexa request.
        Returns:
            response: DeepPavlov agent response.
Infers DeepPavlov agent with raw user input extracted from Alexa request .