from roles.SoftwareTestEngineer import SoftwareTestEngineer class TestErrorSummary: def __init__(self): self.tester = SoftwareTestEngineer() def summarize_errors(self, assistant_role, test_reports, codes, language): """ Summarizes errors from test reports. """ if assistant_role != "Programmer": raise ValueError("Invalid role for error summarization") summary = self.tester.summarize_errors(test_reports, codes, language) return { "output": summary }