rasa/core/training/interactive.py
async def send_message(
    endpoint: EndpointConfig,
    sender_id: Text,
    message: Text,
    parse_data: Optional[Dict[Text, Any]] = None
) -> Dict[Text, Any]:
    """Send a user message to a conversation."""

    payload = {
        "sender": UserUttered.type_name,
        "message": message,
        "parse_data": parse_data
    }

    return await endpoint.request(json=payload,
                                  method="post",
                                  subpath="/conversations/{}/messages"
                                          "".format(sender_id))
Send a user message to a conversation.
Send a user message to a conversation.
Send a user message to a conversation .
async def send_message(
    endpoint: EndpointConfig,
    sender_id: Text,
    message: Text,
    parse_data: Optional[Dict[Text, Any]] = None
) -> Dict[Text, Any]:
    payload = {
        "sender": UserUttered.type_name,
        "message": message,
        "parse_data": parse_data
    }
    return await endpoint.request(json=payload,
                                  method="post",
                                  subpath="/conversations/{}/messages"
                                          "".format(sender_id))
async def send_message ( endpoint : EndpointConfig , sender_id : Text , message : Text , parse_data : Optional [ Dict [ Text , Any ] ] = None ) -> Dict [ Text , Any ] : payload = { "sender" : UserUttered . type_name , "message" : message , "parse_data" : parse_data } return await endpoint . request ( json = payload , method = "post" , subpath = "/conversations/{}/messages" "" . format ( sender_id ) )
Send a user message to a conversation.
Send a user message to a conversation .
"""Send a user message to a conversation."""
endpoint
EndpointConfig
sender_id
Text
message
Text
parse_data
Optional[Dict[Text, Any]]