mgbam commited on
Commit
0c8ae9a
·
verified ·
1 Parent(s): 034fc37

Create code_agent.py

Browse files
Files changed (1) hide show
  1. agents/code_agent.py +6 -0
agents/code_agent.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ class CodeAgent:
2
+ def generate_code(self, content):
3
+ return f"# {content['workshop_title']} Code Labs\n\n" + \
4
+ "import pandas as pd\n\n" + \
5
+ "# Hands-on exercises for:\n" + \
6
+ "\n".join([f"# - {module['title']}" for module in content["modules"]])