Back to prompt library
Automated Testing and Feedback Loop
Linked challenge: DeepCode Architect: Multi-Model Code Generation & Optimization
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Implement the 'Code Optimization & Refinement' phase. Detail how generated code is subjected to automated unit tests (Pytest), security scans (Bandit), and style checks (Flake8). Describe how the results of these tests are fed back into your DSPy program to guide further code refinement using an iterative optimization loop.