@edpire/sdk 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.d.mts CHANGED
@@ -122,7 +122,20 @@ type NodeDetail = {
122
122
  leftId: string;
123
123
  rightId: string;
124
124
  }>;
125
+ }
126
+ /** An AI-graded answer's barème lines, each with its sentence, then the next step (T189 D23). */
127
+ | {
128
+ type: "aiAnswer";
129
+ lines: AiFeedbackLine[];
130
+ next?: string;
125
131
  };
132
+ /** One barème line of an AI-graded answer; no points when the score is hidden from learners. */
133
+ interface AiFeedbackLine {
134
+ label: string;
135
+ score?: number;
136
+ maxScore?: number;
137
+ feedback?: string;
138
+ }
126
139
  interface NodeFeedback {
127
140
  nodeId: string;
128
141
  status: "correct" | "partial" | "incorrect" | "awaiting_review";
@@ -577,4 +590,4 @@ declare function createAnswerSheetHandler(reader: AnswerSheetReader): AnswerShee
577
590
  /** The embed's reader: the embed token authorises the reading, it is not consumed. */
578
591
  declare function embedAnswerSheetHandler(baseUrl: string, token: string): AnswerSheetHandler;
579
592
 
580
- export { type AnswerSheetHandler, type AnswerSheetReader, AssessmentShell, type AssessmentShellProps, EdpireAssessmentPlayer, type EdpireAssessmentPlayerProps, EdpireQuestion, type EdpireQuestionProps, type ExerciseFeedbackData, type NodeDetail, type NodeFeedback, type OverlayConfig, type QuestionFeedback, type ShellLayout, type ShellLocale, type ShellReview, type ShellSaveState, type SpinnerTheme, type SubmitResult, type TakeBranding, createAnswerSheetHandler, embedAnswerSheetHandler };
593
+ export { type AiFeedbackLine, type AnswerSheetHandler, type AnswerSheetReader, AssessmentShell, type AssessmentShellProps, EdpireAssessmentPlayer, type EdpireAssessmentPlayerProps, EdpireQuestion, type EdpireQuestionProps, type ExerciseFeedbackData, type NodeDetail, type NodeFeedback, type OverlayConfig, type QuestionFeedback, type ShellLayout, type ShellLocale, type ShellReview, type ShellSaveState, type SpinnerTheme, type SubmitResult, type TakeBranding, createAnswerSheetHandler, embedAnswerSheetHandler };