dialoguekit.core.dialogue¶
Interface representing the sequence of utterances in a dialogue.
Classes¶
Represents a dialogue. |
Module Contents¶
- class dialoguekit.core.dialogue.Dialogue(agent_id: str, user_id: str)¶
Represents a dialogue.
- Parameters:
agent_id – Agent ID.
user_id – User ID.
- property agent_id: str¶
Returns the agent id.
- property user_id: str¶
Returns the user id.
- property utterances: List[dialoguekit.core.utterance.Utterance]¶
Returns the utterances in the dialogue.
- property metadata: Dict[str, Any]¶
Returns the metadata of the dialogue.
- add_utterance(utterance: dialoguekit.core.utterance.Utterance) None ¶
Adds an utterance to the history.
- Parameters:
utterance – An instance of Utterance.
- to_dict() Dict[str, Any] ¶
Converts the dialogue to a dictionary.
- Returns:
Dialogue as dictionary.