Kizuki
    Preparing search index...

    Function validateTeachReply

    • The guard for teach-back questions. Contradiction and gap questions must point at a real sentence of the material, which becomes the quote; unclear questions must use words you wrote. An unclear question that points at a sentence but not at your words becomes a gap. Repeats of earlier questions, and quotes of text you corrected, are dropped. At most MAX_QUESTIONS are kept.

      Parameters

      • reply: {
            questions: {
                kind: "contradiction" | "gap" | "unclear";
                sentence: string;
                term: string;
            }[];
        }
      • input: TeachCheckInput

      Returns {
          dropped: number;
          questions: {
              kind: "contradiction" | "gap" | "unclear";
              questionId: string;
              quote?: { passageId: string; text: string };
              term?: string;
              text: string;
          }[];
      }