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.annotated_utterance.AnnotatedUtterance]¶
Returns the utterances in the dialogue.
- add_utterance(utterance: dialoguekit.core.annotated_utterance.AnnotatedUtterance) None ¶
Adds an utterance to the history.
- Parameters:
utterance – An instance of Utterance.
- to_dict() Dict[str, Any] ¶
Converts the dialogue to a dictionary.
TODO Finalize this method.
- Returns:
Dialogue as dictionary.