%%{init: {'theme': 'default', 'flowchart': {'nodeSpacing': 30, 'rankSpacing': 40}}}%% flowchart TD T["Tools"] --> LLM["LLM"] R["Retrieval"] --> LLM LLM --> M["Memory"] LLM --> G["Guardrails"]
%%{init: {'theme': 'default', 'flowchart': {'nodeSpacing': 20, 'rankSpacing': 30}}}%% flowchart LR S1["Step 1 (LLM)"] --> G1{"Gate: Pass?"} G1 --> S2["Step 2 (LLM)"] S2 --> G2{"Gate: Pass?"} G2 --> S3["Step 3 (LLM)"]
%%{init: {'theme': 'default', 'flowchart': {'nodeSpacing': 20, 'rankSpacing': 30}}}%% flowchart TD C["Classifier (LLM)"] --> CT["Code Tasks"] C --> DT["Debug Tasks"] C --> DO["Docs Tasks"]
%%{init: {'theme': 'default', 'flowchart': {'nodeSpacing': 20, 'rankSpacing': 30}}}%% flowchart TD A["Sub-task A"] --> AG["Aggregator"] B["Sub-task B"] --> AG
%%{init: {'theme': 'default', 'flowchart': {'nodeSpacing': 20, 'rankSpacing': 30}}}%% flowchart TD O["Orchestrator"] --> W1["Worker 1"] O --> W2["Worker 2"] O --> W3["Worker 3"] W1 --> S["Synthesize Result"] W2 --> S W3 --> S
%%{init: {'theme': 'default', 'flowchart': {'nodeSpacing': 20, 'rankSpacing': 30}}}%% flowchart LR G["Generator"] --> E["Evaluator"] E -->|"Feedback loop"| G
%%{init: {'theme': 'default', 'flowchart': {'nodeSpacing': 20, 'rankSpacing': 30}}}%% flowchart LR P["Plan/Decide"] --> E["Execute"] E --> O["Observe"] O --> M{"More work?"} M -->|"Yes"| P M -->|"No"| D["Done"]