@@ -211,19 +211,15 @@ const supervisor: PatternContent = {
211211 "Quality-critical workflows: when outputs must meet a quality bar before proceeding" ,
212212 "Complex queries: tasks that benefit from decomposition into smaller subtasks" ,
213213 ] ,
214- architectureMermaid : `graph TB
215- Input[User Input] --> Supervisor[Supervisor Agent<br/>planner + reviewer]
216- Supervisor -->|plan| Plan["Subtask Plan<br/>[search, analysis, summary]"]
217- Plan --> Search[Search Worker<br/>information gatherer]
218- Search -->|output| Review1{Supervisor<br/>Review}
219- Review1 -->|adequate| Analysis[Analysis Worker<br/>analyst]
220- Review1 -->|retry| Search
221- Analysis -->|output| Review2{Supervisor<br/>Review}
222- Review2 -->|adequate| Summary[Summary Worker<br/>summarizer]
223- Review2 -->|retry| Analysis
224- Summary -->|output| Review3{Supervisor<br/>Review}
225- Review3 -->|adequate| Output[Final Output]
226- Review3 -->|retry| Summary` ,
214+ architectureMermaid : `graph LR
215+ Input[User Input] --> Supervisor[Supervisor<br/>planner + reviewer]
216+ Supervisor -->|plan| Search[Search]
217+ Search -->|review| Supervisor
218+ Supervisor -->|plan| Analysis[Analysis]
219+ Analysis -->|review| Supervisor
220+ Supervisor -->|plan| Summary[Summary]
221+ Summary -->|review| Supervisor
222+ Supervisor --> Output[Final Output]` ,
227223 howItWorks : [
228224 "Supervisor plans: given the user's input, generates a JSON plan with ordered subtasks, each assigned to a worker" ,
229225 "Worker execution: each subtask is dispatched to its assigned worker with context from previous workers" ,
@@ -313,12 +309,11 @@ const debate: PatternContent = {
313309 "Decision-making: surface pros and cons before committing to a course of action" ,
314310 "Critical thinking: force exploration of opposing viewpoints on any topic" ,
315311 ] ,
316- architectureMermaid : `graph TB
317- Input[Thesis] --> Bull[Bull Debater <br/>argues FOR]
318- Bull -->|round 1| Bear[Bear Debater <br/>argues AGAINST]
312+ architectureMermaid : `graph LR
313+ Input[Thesis] --> Bull[Bull<br/>argues FOR]
314+ Bull -->|round 1| Bear[Bear<br/>argues AGAINST]
319315 Bear -->|round 2| Bull
320- Bull -->|round 2| Bear
321- Bear -->|debate complete| Judge[Judge<br/>evaluates + verdict]
316+ Bear -->|debate complete| Judge[Judge<br/>verdict]
322317 Judge --> Output[Final Verdict]` ,
323318 howItWorks : [
324319 "The bull debater presents arguments in favor of the thesis" ,
@@ -402,18 +397,15 @@ const swarm: PatternContent = {
402397 "Multi-domain workflows: when the right specialist depends on context discovered during conversation" ,
403398 "Decentralized routing: when no single agent has enough context to route upfront" ,
404399 ] ,
405- architectureMermaid : `graph TB
406- Input[Customer Query] --> Triage[Triage Agent]
407- Triage -->|direct response| Output[Response]
408- Triage -->|HANDOFF:sales| Sales[Sales Agent]
409- Triage -->|HANDOFF:support| Support[Support Agent]
410- Triage -->|HANDOFF:billing| Billing[Billing Agent]
411- Sales -->|HANDOFF:support| Support
412- Sales -->|HANDOFF:billing| Billing
413- Support -->|HANDOFF:sales| Sales
414- Support -->|HANDOFF:billing| Billing
415- Billing -->|HANDOFF:sales| Sales
416- Billing -->|HANDOFF:support| Support
400+ architectureMermaid : `graph LR
401+ Input[Query] --> Triage[Triage]
402+ Triage --> Output[Response]
403+ Triage -->|handoff| Sales[Sales]
404+ Triage -->|handoff| Support[Support]
405+ Triage -->|handoff| Billing[Billing]
406+ Sales <-->|handoff| Support
407+ Sales <-->|handoff| Billing
408+ Support <-->|handoff| Billing
417409 Sales --> Output
418410 Support --> Output
419411 Billing --> Output` ,
@@ -593,13 +585,11 @@ const reflection: PatternContent = {
593585 "Iterative improvement: any task where output quality benefits from review cycles" ,
594586 "Quality gates: ensuring output meets specific criteria before acceptance" ,
595587 ] ,
596- architectureMermaid : `graph TB
597- Input[User Request] --> Gen1[Generator<br/>produces content]
598- Gen1 -->|handoff| Critic1[Critic<br/>evaluates quality]
599- Critic1 -->|verdict: pass| Output[Final Output]
600- Critic1 -->|verdict: revise| Gen2[Generator<br/>revises with feedback]
601- Gen2 -->|handoff| Critic2[Critic<br/>re-evaluates]
602- Critic2 -->|pass or max iterations| Output` ,
588+ architectureMermaid : `graph LR
589+ Input[User Request] --> Generator[Generator]
590+ Generator -->|handoff| Critic[Critic]
591+ Critic -->|verdict: pass| Output[Final Output]
592+ Critic -->|verdict: revise| Generator` ,
603593 howItWorks : [
604594 "The generator produces initial content from the user's request" ,
605595 "The critic evaluates against criteria (coherence, evidence, persuasiveness, clarity, completeness) and returns a JSON verdict: pass or revise with feedback" ,
0 commit comments