naso / agents /code_agent.py
mgbam's picture
Create code_agent.py
0c8ae9a verified
raw
history blame contribute delete
300 Bytes
class CodeAgent:
def generate_code(self, content):
return f"# {content['workshop_title']} Code Labs\n\n" + \
"import pandas as pd\n\n" + \
"# Hands-on exercises for:\n" + \
"\n".join([f"# - {module['title']}" for module in content["modules"]])