""" Analyze this task and break it down into 2-3 distinct approaches:
Task: {task}
Return your response in this JSON format: \\{ "analysis": "Explain your understanding of the task and which variations would be valuable. Focus on how each approach serves different aspects of the task.", "tasks": [ \\{ "type": "formal", "description": "Write a precise, technical version that emphasizes specifications" \\}, \\{ "type": "conversational", "description": "Write an engaging, friendly version that connects with readers" \\} ] \\} ""
worker
1 2 3 4 5 6
""" Generate content based on: Task: {original_task} Style: {task_type} Guidelines: {task_description} """
When to use this workflow: This workflow is well-suited for complex tasks where you can’t predict the subtasks needed (in coding, for example, the number of files that need to be changed and the nature of the change in each file likely depend on the task). Whereas it’s topographically similar, the key difference from parallelization is its flexibility—subtasks aren’t pre-defined, but determined by the orchestrator based on the specific input.