Refine and Validate Optimization

implementationChallengeOctober 12, 2025

Prompt Content

Add a feedback loop to your AutoGen system. After the 'Code Optimizer' proposes a solution, simulate its 'execution' or 'profiling'. The 'Performance Analyst' should then evaluate the simulated results against the initial targets. If the targets are not met, the agents should engage in another round of deep reasoning, profiling, and code generation to refine the optimization strategy. Document the iterative process and how agents adapt their approach.

Usage Tips

Copy the prompt and paste it into your preferred AI tool

Customize the prompt by replacing placeholder values with your specific requirements

For best results, provide clear context and examples when using this prompt