Spaces:
Runtime error
Runtime error
File size: 575 Bytes
40aba81 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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"
} |