Home/Tools/@tpmjs/tools-quiz-generate

quizGenerateTool

@tpmjs/tools-quiz-generate

Generates quiz questions from provided content with multiple question types (multiple choice, true/false, fill-in-blank), answer options, correct answers, and explanations. Questions are varied in difficulty and aligned with Bloom's taxonomy.

Official
edu
v0.1.0
MIT
⚠️

This tool is currently broken

Execution Failed
Runtime error with test parameters
Content must be at least 50 characters long

Last checked: 3/1/2026, 4:28:19 AM

Interactive Playground

Test @tpmjs/tools-quiz-generate (quizGenerateTool) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/tools-quiz-generate
pnpm add @tpmjs/tools-quiz-generate
yarn add @tpmjs/tools-quiz-generate
bun add @tpmjs/tools-quiz-generate
deno add npm:@tpmjs/tools-quiz-generate

2. Import the tool

import { quizGenerateTool } from '@tpmjs/tools-quiz-generate';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { quizGenerateTool } from '@tpmjs/tools-quiz-generate';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { quizGenerateTool },
  prompt: 'Your prompt here...',
});

console.log(result.text);

Signature

(count: number, content: string, difficulty?: string) => Promise<unknown>

Tags

ai
assessment
choice
content
edu
education
generate
generates
learning
multiple
provided
question
questions
quiz
testing
tpmjs
types

Parameters

Available configuration options

Auto-extracted
content
Required
Type: string

Source content from which to generate quiz questions (minimum 50 characters)

count
Required
Type: number

Number of questions to generate (1-50)

difficulty
Optional
Type: string

Overall difficulty level for the quiz (default: medium)

Schema extracted: 3/1/2026, 4:28:19 AM

README

ERROR: No README data found!

Statistics

Downloads/month

4

GitHub Stars

0

Quality Score

72%

Bundle Size

NPM Keywords

tpmjs
education
ai
quiz
assessment
testing
learning

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai