Created the InteractiveSpeaking exercise

This commit is contained in:
Tiago Ribeiro
2023-09-19 00:57:36 +01:00
parent f5de8f5e10
commit 7cdff84d5e
9 changed files with 492 additions and 10 deletions

View File

@@ -68,7 +68,8 @@ export type Exercise =
| MultipleChoiceExercise
| WriteBlanksExercise
| WritingExercise
| SpeakingExercise;
| SpeakingExercise
| InteractiveSpeakingExercise;
export interface Evaluation {
comment: string;
@@ -108,13 +109,13 @@ export interface SpeakingExercise {
export interface InteractiveSpeakingExercise {
id: string;
type: "speaking";
type: "interactiveSpeaking";
title: string;
text: string;
prompts: {text: string; video_url: string}[];
userSolutions: {
id: string;
solution: string;
solution: {question: string; answer: string}[];
evaluation?: Evaluation;
}[];
}