Create code_agent.py
Browse files- 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"]])
|