rasa/core/channels/channel.py
def element_to_string(element, idx=0):
    """Create a string representation of an element."""

    title = element.pop('title', '')

    element_string = "{idx}: {title} - {element}".format(
        idx=idx + 1,
        title=title,
        element=json.dumps(element, sort_keys=True))

    return element_string
Create a string representation of an element.
Create a string representation of an element.
Create a string representation of an element .
def element_to_string(element, idx=0):
    title = element.pop('title', '')
    element_string = "{idx}: {title} - {element}".format(
        idx=idx + 1,
        title=title,
        element=json.dumps(element, sort_keys=True))
    return element_string
def element_to_string ( element , idx = 0 ) : title = element . pop ( 'title' , '' ) element_string = "{idx}: {title} - {element}" . format ( idx = idx + 1 , title = title , element = json . dumps ( element , sort_keys = True ) ) return element_string
Create a string representation of an element.
Create a string representation of an element .
"""Create a string representation of an element."""
element
idx