mgbam commited on
Commit
011a222
·
verified ·
1 Parent(s): 3e88289

Create agents/slide_agent.py

Browse files
Files changed (1) hide show
  1. agents/slide_agent.py +14 -0
agents/slide_agent.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # File: agents/slide_agent.py
2
+
3
+ class SlideAgent:
4
+ def generate_slides(self, content):
5
+ # In production: Use JSON-to-Deck converter
6
+ markdown_slides = f"# {content['workshop_title']}\n\n"
7
+ for i, module in enumerate(content["modules"]):
8
+ markdown_slides += f"## Module {i+1}: {module['title']}\n\n"
9
+ markdown_slides += f"### Key Learning Points:\n- {module['speaker_notes']}\n\n"
10
+ markdown_slides += "### Exercises:\n"
11
+ for j, exercise in enumerate(module["exercises"]):
12
+ markdown_slides += f"{j+1}. {exercise}\n"
13
+ markdown_slides += "\n---\n"
14
+ return markdown_slides