rasa.shared.core.conversation

Dialogue Objects

A dialogue comprises a list of Turn objects.

init

def __init__(name: Text, events: List["Event"])->None

This function initialises the dialogue with the dialogue name and the event list.

str

def __str__(self) -> Text

This function returns the dialogue and turns.

as_dict

def as_dict(self) -> Dict

This function returns the dialogue as a dictionary to assist in serialization.

from_parameters

@classmethod
def from_parameters(cls, parameters: Dict[Text, Any]) -> "Dialogue"

Create Dialogue from parameters.

Arguments:

Returns:

Deserialised Dialogue.