acecalisto3 commited on
Commit
0faa6ad
·
verified ·
1 Parent(s): 51df110

Update definitions.py

Browse files
Files changed (1) hide show
  1. definitions.py +8 -8
definitions.py CHANGED
@@ -418,14 +418,14 @@ class DevelopmentPipeline:
418
  return {"status": "error", "error": str(e)}
419
 
420
  def _generate_boilerplate_code(self, plan: Dict) -> str:
421
- """Generate boilerplate code based on the development plan."""
422
- return f"""# Project: {plan.get('task', 'Untitled')}\n\n
423
- # Subtasks:\n
424
- {''.join([f'# {subtask}\n' for subtask in plan.get('subtasks', [])])}\n
425
- def main():\n
426
- print('Hello World')\n\n
427
- if __name__ == '__main__':\n
428
- main()"""
429
 
430
  def _implement_subtask(self, subtask: str) -> None:
431
  """Implement functionality for a subtask."""
 
418
  return {"status": "error", "error": str(e)}
419
 
420
  def _generate_boilerplate_code(self, plan: Dict) -> str:
421
+ """Generated boilerplate code based on the development plan."""
422
+ return """f"# Project: {plan.get('task', 'Untitled')}
423
+ # Subtasks:
424
+ {''.join([f'# {subtask} for subtask in plan.get('subtasks', [])])}
425
+ def main():
426
+ print('Hello World')
427
+ if __name__ == '__main__':
428
+ main()"""""
429
 
430
  def _implement_subtask(self, subtask: str) -> None:
431
  """Implement functionality for a subtask."""