@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.
Content must be at least 50 characters long
Last checked: 3/1/2026, 4:28:19 AM
Test @tpmjs/tools-quiz-generate (quizGenerateTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-quiz-generatepnpm add @tpmjs/tools-quiz-generateyarn add @tpmjs/tools-quiz-generatebun add @tpmjs/tools-quiz-generatedeno add npm:@tpmjs/tools-quiz-generateimport { quizGenerateTool } from '@tpmjs/tools-quiz-generate';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);(count: number, content: string, difficulty?: string) => Promise<unknown>Available configuration options
contentstringSource content from which to generate quiz questions (minimum 50 characters)
countnumberNumber of questions to generate (1-50)
difficultystringOverall difficulty level for the quiz (default: medium)
Schema extracted: 3/1/2026, 4:28:19 AM
ERROR: No README data found!
Downloads/month
4
GitHub Stars
0
Quality Score