Spaces:
Runtime error
Runtime error
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" | |
} |