Adversarial roles assign different perspectives to one task so that one role creates an answer and another challenges or improves it. Like a chef and dietitian, the roles separate creativity from quality control. section 3.3
A role-based workflow commonly follows these stages:
- Input: accept a recipe name or available ingredients. section 3.3
- Generation: ask a chef role to create an appealing recipe. section 3.3
- Critique and refinement: pass the recipe to a dietitian role for health-focused improvements. section 3.3
- Output: return the refined recipe and its health information. section 3.3
Chef versus dietitian
A Michelin-starred chef produces a decadent recipe, while a registered dietitian critiques it and makes it healthier. Separate LLM calls keep each role focused instead of combining both objectives in one prompt. section 3.3
Figure 3.11 Chef vs. dietitian: one generates, the other refines
The figure visualizes the complementary roles: one generates a recipe and the other refines it. section 3.3
