Quiz
quizRender an interactive quiz. The card only renders; YOU (the model) define everything. Inputs: title (optional), description (optional), perPage (how many questions to show per page, default 1), and questions — an array of { prompt, type ("single" | "multiple", default "single"), options, explanation? }. Each option is { label, score } (or a bare string, with an optional parallel scores array). Set score per option (can be negative) to weight answers. The card paginates, lets the user answer single/multiple choice, computes the total, and sends the selections and score back through the conversation so you can respond. Use whenever a user wants a test, quiz or questionnaire.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Quiz title. | |
| locale | No | UI language for the rendered card. | en |
| perPage | No | How many questions to show per page (1–10). | |
| questions | Yes | Array of questions. Each: { prompt, type: "single" | "multiple", options: [{ label, score }], explanation? }. | |
| description | No | Short instructions shown under the title. |