Edu SDKEdu SDK

createStudyGuide

Generate a study guide from educational content.

Generates a study guide from educational content: a summary, key concepts, and review questions.

Usage

import { createStudyGuide } from "edu-sdk";

const studyGuide = await createStudyGuide({
  model: "google/gemini-3.6-flash",
  content,
  difficulty: "medium"
});

Options

OptionTypeRequiredDefault
modelstring | LanguageModelYes—
contentstring | FileContentYes—
difficulty"easy" | "medium" | "hard"No"medium"

content may be a string or FileContent (PDF / text / markdown bytes).

Returns

Promise<Artifact<StudyGuideContent>>

{
  id: string;
  title: string;
  description?: string;
  metadata: {
    createdAt: string;
    model: string;
    difficulty: "easy" | "medium" | "hard";
  };
  content: {
    summary: string;
    keyConcepts: {
      concept: string;
      explanation: string;
    }[];
    reviewQuestions: string[];
  };
}

Example

import { createStudyGuide } from "edu-sdk";

const studyGuide = await createStudyGuide({
  model: "google/gemini-3.6-flash",
  content: chapterText,
  difficulty: "easy"
});

// <StudyGuide studyGuide={studyGuide} />

Render with <StudyGuide />.

On this page