Skip to main content
This example shows how to create iterative workflows that execute multiple independent tasks simultaneously within each iteration, optimizing both quality and performance. When to use: When you need iterative quality improvement with parallel task execution in each iteration. Ideal for comprehensive research workflows where multiple independent tasks contribute to overall quality, and you need to repeat until quality thresholds are met.
loop_with_parallel_steps_stream.py
This was a synchronous streaming example of this pattern. To checkout async and non-streaming versions, see the cookbooks-