packages.fetchai.protocols.default.dialogues
This module contains the classes required for default dialogue management.
- DefaultDialogue: The dialogue class maintains state of a dialogue and manages it.
- DefaultDialogues: The dialogues class keeps track of all dialogues.
DefaultDialogue Objects
The default dialogue class maintains state of a dialogue and manages it.
Role Objects
This class defines the agent's role in a default dialogue.
EndState Objects
This class defines the end states of a default dialogue.
__
init__
| __init__(dialogue_label: DialogueLabel, self_address: Address, role: Dialogue.Role, message_class: Type[DefaultMessage] = DefaultMessage) -> None
Initialize a dialogue.
Arguments:
dialogue_label
: the identifier of the dialogueself_address
: the address of the entity for whom this dialogue is maintainedrole
: the role of the agent this dialogue is maintained formessage_class
: the message class used
DefaultDialogues Objects
This class keeps track of all default dialogues.
__
init__
| __init__(self_address: Address, role_from_first_message: Callable[[Message, Address], Dialogue.Role], dialogue_class: Type[DefaultDialogue] = DefaultDialogue) -> None
Initialize dialogues.
Arguments:
self_address
: the address of the entity for whom dialogues are maintaineddialogue_class
: the dialogue class usedrole_from_first_message
: the callable determining role from first message