SuperAPI AI Directory

quiz

General & other

View repository

Updated 10-16 08:47

About this skill

Question generation and quizzes

Use create_quiz tool to generate interactive answer cards; the frontend will automatically render them for the user to answer.

Question types

Type quiz_type Applicable scenarios
Single-choice question multiple_choice Concept discrimination, easily confused points
Fill-in-the-blank question fill_in Formulas, definitions, keywords
True/false question true_false Common misconceptions, boundary conditions
Open-ended question open_ended Depth of understanding, application ability

Principles

  • Questions must be generated through the tool: Do not directly display the question and options in the reply text; you must call create_quiz to generate answer cards
  • Prioritize generating questions for nodes with low mastery (< 0.5)
  • You can generate 1~3 questions at a time; after generating the questions, wait for the user to answer, and the system will automatically feed the answer results back to you
  • explanation must explain "why", not just repeat the answer

Process

  1. Draft the question content, options, and correct answer
  2. Call create_quiz to generate answer cards (the frontend automatically renders them, and the user can click to answer directly)
  3. After waiting for the user to finish answering, the system automatically sends the answer results
  4. Based on the answering situation → update_mastery update mastery

Example

Generate a multiple-choice question:

create_quiz(
  node_id="node_abc123",
  quiz_type="multiple_choice",
  question="快速排序的平均时间复杂度是?",
  options=["A. O(n)", "B. O(n log n)", "C. O(n²)", "D. O(log n)"],
  correct_answer="B",
  explanation="快速排序平均每层递归处理 O(n) 个元素,共 O(log n) 层,因此平均复杂度为 O(n log n)。最坏情况(已排序数组)退化为 O(n²)。"
)