Script#

dff.script.core.message

The Message class is a universal data model for representing a message that should be supported by DFF. It only contains types and properties that are compatible with most messaging services.

dff.script.responses.std_responses

Responses determine the response that will be sent to the user for each node of the dialog graph. Responses are used to provide the user with information, ask questions, or guide the conversation in a particular direction.

dff.script.extras.slots

dff.script.core.keywords

Keywords are used to define the dialog graph, which is the structure of a conversation. They are used to determine all nodes in the script and to assign python objects and python functions for nodes.

dff.script.core.script

The Script module provides a set of pydantic models for representing the dialog graph. These models are used to define the conversation flow, and to determine the appropriate response based on the user's input and the current state of the conversation.

dff.script.core.types

The Types module contains a set of basic data types that are used to define the expected input and output of various components of the framework. The types defined in this module include basic data types such as strings and lists, as well as more complex types that are specific to the framework.

dff.script.labels.std_labels

Labels are one of the important components of the dialog graph, which determine the targeted node name of the transition. They are used to identify the next step in the conversation. Labels can also be used in combination with other conditions, such as the current context or user data, to create more complex and dynamic conversations.

dff.script.conditions.std_conditions

Conditions are one of the most important components of the dialog graph. They determine the possibility of transition from one node of the graph to another. The conditions are used to specify when a particular transition should occur, based on certain criteria. This module contains a standard set of scripting conditions that can be used to control the flow of a conversation. These conditions can be used to check the current context, the user's input, or other factors that may affect the conversation flow.

dff.script.core.context

A Context is a data structure that is used to store information about the current state of a conversation. It is used to keep track of the user's input, the current stage of the conversation, and any other information that is relevant to the current context of a dialog. The Context provides a convenient interface for working with data, allowing developers to easily add, retrieve, and manipulate data as the conversation progresses.

dff.script.extras.conditions

dff.script.core.normalization

Normalization module is used to normalize all python objects and functions to a format that is suitable for script and actor execution process. This module contains a basic set of functions for normalizing data in a dialog script.