Several files in dialoguekit access annotation.slot instead of annotation.key, but slot is only defined on SlotValueAnnotation, not the parent Annotation class. Since DialogueAct.annotations is typed as List[SlotValueAnnotation] but nothing enforces this at runtime, passing plain Annotation objects (which only have .key) causes a crash.
This happens in these files
core/dialogue.py:164
nlg/nlg_template.py:139, 193, 204
nlg/template_from_training_data.py:51
platforms/flask_socket_platform.py:50
Several files in dialoguekit access annotation.slot instead of annotation.key, but slot is only defined on SlotValueAnnotation, not the parent Annotation class. Since DialogueAct.annotations is typed as List[SlotValueAnnotation] but nothing enforces this at runtime, passing plain Annotation objects (which only have .key) causes a crash.
This happens in these files
core/dialogue.py:164
nlg/nlg_template.py:139, 193, 204
nlg/template_from_training_data.py:51
platforms/flask_socket_platform.py:50