rasa/core/channels/socketio.py
async def send_custom_message(self, recipient_id: Text,
                                  elements: List[Dict[Text, Any]]) -> None:
        """Sends elements to the output."""

        message = {"attachment": {
            "type": "template",
            "payload": {
                "template_type": "generic",
                "elements": elements[0]
            }}}

        await self._send_message(self.sid, message)
Sends elements to the output.
Sends elements to the output.
Sends elements to the output .
async def send_custom_message(self, recipient_id: Text,
                                  elements: List[Dict[Text, Any]]) -> None:
        message = {"attachment": {
            "type": "template",
            "payload": {
                "template_type": "generic",
                "elements": elements[0]
            }}}
        await self._send_message(self.sid, message)
async def send_custom_message ( self , recipient_id : Text , elements : List [ Dict [ Text , Any ] ] ) -> None : message = { "attachment" : { "type" : "template" , "payload" : { "template_type" : "generic" , "elements" : elements [ 0 ] } } } await self . _send_message ( self . sid , message )
Sends elements to the output.
Sends elements to the output .
"""Sends elements to the output."""
self
recipient_id
Text
elements
List[Dict[Text, Any]]