Perseus
    Preparing search index...

    Interface GradedGroupPromptJSON

    JSON describing a graded group widget. Intended for consumption by AI tools. The graded group widget displays a self-contained question with its own "check answer" button. The learner's score on this question is not recorded. Graded groups are provided for learners to check their own understanding of a concept.

    interface GradedGroupPromptJSON {
        content: string;
        hint: RendererPromptJSON;
        title: string;
        type: "graded-group";
        widgets: { [widgetId: string]: WidgetPromptJSON };
    }

    Hierarchy (View Summary)

    Index

    Properties

    content: string

    Markdown content of the document. Widgets are represented by placeholders containing a Unicode snowman symbol, e.g. [[☃ radio 1]]. May contain TeX delimited by dollar signs, e.g. $\dfrac{1}{2}$. Literal dollar signs are escaped by backslashes.

    Explanation of the question, which the learner can show or hide by clicking a button. There is no penalty for looking at this hint.

    title: string

    Displayed above the graded group.

    type: "graded-group"
    widgets: { [widgetId: string]: WidgetPromptJSON }

    Information about the configuration and UI state of each widget.