MasterPiper2112's picture
Upload 7 files
40aba81 verified
raw
history blame contribute delete
575 Bytes
from roles.Programmer import Programmer
class Coding:
def __init__(self):
self.programmer = Programmer()
def func_coding(self, assistant_role, gui, ideas, language, modality, task):
"""
Handles the coding phase based on assistant role.
"""
if assistant_role != "Programmer":
raise ValueError("Invalid role for coding")
code = self.programmer.code(gui, ideas, language, modality, task)
return {
"output": code,
"unimplemented_file": "path/to/unimplemented_file.py"
}