diff --git a/deep_tutor/core/study/FlashCardGenerator.py b/deep_tutor/core/study/FlashCardGenerator.py new file mode 100644 index 000000000..6cb8ee23d --- /dev/null +++ b/deep_tutor/core/study/FlashCardGenerator.py @@ -0,0 +1,12 @@ +class FlashCardGenerator: + """ + Generates study flashcards from Knowledge Base snippets. + Addresses request for active study tools (#171). + """ + def __init__(self, model_engine): + self.model = model_engine + + async def generate_cards(self, content, count=5): + prompt = f"Create {count} flashcards (Question/Answer) from the following text:\n\n{content}" + # Logic to call model and parse structured flashcard output + return [{"q": "Question", "a": "Answer"}]