Example Workflows

Real, runnable SwarmAI workflows with detailed architecture diagrams. Clone the repo and run any example in under 5 minutes.

CoreHIERARCHICAL
code Source

Competitive Market Analysis

Hierarchical multi-agent research. A program manager coordinates 4 specialists โ€” market intelligence, research, strategy, and writing โ€” to produce a comprehensive competitive landscape report.

Agents:Research Program ManagerMarket Intelligence AnalystResearch AnalystStrategy ConsultantExecutive Writer
Workflow
Program Manager
  โ”œโ”€โ”€โ–บ Market Intelligence Analyst
  โ”œโ”€โ”€โ–บ Research Analyst
  โ”œโ”€โ”€โ–บ Strategy Consultant
  โ””โ”€โ”€โ–บ Executive Writer โ”€โ”€โ–บ Report
Hierarchical delegation5 specialist agentsManager coordinationCompetitive intelligence
CorePARALLEL
code Source

Investment Due Diligence

Parallel due diligence across financial, market, and legal dimensions. Specialist agents analyze a company simultaneously, then a director synthesizes findings into a comprehensive assessment.

Agents:Program DirectorFinancial AnalystMarket AnalystLegal & Regulatory Analyst
Workflow
โ”Œโ”€ Financial Analyst  โ”€โ”
โ”œโ”€ Market Analyst     โ”€โ”คโ”€โ”€โ–บ Program Director โ”€โ”€โ–บ Report
โ””โ”€ Legal & Regulatory โ”€โ”˜
Parallel executionLayer synchronization4 concurrent agentsResult synthesis
CoreHIERARCHICAL
code Source

Hierarchical Web Research

Manager agent creates an execution plan, delegates search tasks to specialists, collects results, and orchestrates the final report. Workers are selected based on task requirements and tool availability.

Agents:Research ManagerWeb SearcherData AnalystFact CheckerReport Writer
Workflow
Manager โ”€โ”€โ–บ Plan
  โ”œโ”€โ”€โ–บ Web Searcher โ”€โ”€โ–บ raw data
  โ”œโ”€โ”€โ–บ Data Analyst โ”€โ”€โ–บ insights
  โ”œโ”€โ”€โ–บ Fact Checker โ”€โ”€โ–บ verified
  โ””โ”€โ”€โ–บ Report Writer โ”€โ”€โ–บ final report
Manager delegationDynamic task assignmentAgent selection by capability5 agents
AdvancedSELF_IMPROVING
code Source

Dynamic Skill Generation

The analyst executes tasks while the reviewer evaluates output quality. When capability gaps are detected, new Groovy-based skills are generated, validated in a sandbox, and hot-loaded into the agent mid-run. RL policy decides when to converge.

Agents:AnalystReviewer
Workflow
Analyst โ”€โ”€โ–บ Output โ”€โ”€โ–บ Reviewer
  โ–ฒ                        โ”‚
  โ”‚   โ”Œโ”€ CAPABILITY_GAP โ—„โ”€โ”˜
  โ”‚   โ–ผ
  โ”‚  Generate Skill โ”€โ”€โ–บ Validate โ”€โ”€โ–บ Register
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Retry with new skill
Dynamic skill generationGroovy sandbox validationRL convergence policySkill persistence
AdvancedSELF_IMPROVING
code Source

Self-Evolving Swarm

Transparent self-evolution: the swarm discovers a better architecture and applies it automatically on the next run. Configured as SEQUENTIAL, Swarm.kickoff() reads evolution history from H2 and transparently switches to PARALLEL โ€” zero code changes needed.

Agents:Technology AnalystMarket AnalystRisk Analyst
Workflow
Run 1: [Tech] โ”€โ”€โ–บ [Market] โ”€โ”€โ–บ [Risk]  (SEQUENTIAL)
  โ””โ”€โ”€ observes: PROCESS_SUITABILITY
  โ””โ”€โ”€ persists: PROCESS_TYPE_CHANGE โ†’ H2

Run 2: Swarm.kickoff() reads H2
  โ”Œโ”€ [Tech]   โ”€โ”
  โ”œโ”€ [Market] โ”€โ”ค  (PARALLEL โ€” evolved!)
  โ””โ”€ [Risk]   โ”€โ”˜
Transparent evolutionH2 persistent learningProcess type optimizationEvolutionAdvisor on kickoff()
EnterpriseSEQUENTIAL
code Source Enterprise

Governed Enterprise Workflow

Production-grade workflow with multi-tenancy (tenant-scoped memory/quotas), budget tracking ($5 cap, 500K token limit), and human-in-the-loop approval gates between research and writing phases.

Agents:Research AnalystReport Writer
Workflow
Tenant: acme-research | Budget: $5.00 / 500K tokens

Research Analyst โ”€โ”€โ–บ [APPROVAL GATE] โ”€โ”€โ–บ Report Writer
                     โ”‚ auto-approve    โ”‚
                     โ”‚ after 5s        โ”‚
                     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”€โ”€โ–บ Budget Snapshot logged
Multi-tenancyBudget HARD_STOP/WARNApproval gatesTenant quotas
AdvancedSWARM
code Source

Competitive Research Swarm

Distributed fan-out pattern. Discovery phase identifies competitor targets, then parallel agents research each target independently. A coordinator synthesizes all findings into a master report.

Agents:Discovery AgentResearch AgentSynthesis Agent
Workflow
Discovery โ”€โ”€โ–บ [Target A, Target B, Target C]
  โ”œโ”€โ”€โ–บ Research Agent (A) โ”€โ”€โ”
  โ”œโ”€โ”€โ–บ Research Agent (B) โ”€โ”€โ”คโ”€โ”€โ–บ Coordinator โ”€โ”€โ–บ Master Report
  โ””โ”€โ”€โ–บ Research Agent (C) โ”€โ”€โ”˜
Distributed fan-outParallel sub-swarmsShared skill registryMaster synthesis
CoreITERATIVE
code Source

Iterative Investment Memo

Execute-review-refine loop. The analyst researches, the memo author drafts, and the managing director reviews against a 7-point rubric. Iterates until approved or max iterations reached.

Agents:Equity Research AnalystMemo AuthorManaging Director
Workflow
Research Analyst โ”€โ”€โ–บ Memo Author โ”€โ”€โ–บ Managing Director
  โ–ฒ                                        โ”‚
  โ”‚         NEEDS_REFINEMENT โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  (with feedback)
  โ”‚                โ”‚
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

  APPROVED โ”€โ”€โ–บ Final Memo
Quality-driven iteration7-point review rubricMax iteration cap3-agent collaboration

YAML DSL Workflows

30+ YAML workflow definitions covering every process type, budget tracking, governance gates, tool hooks, conditional tasks, graph workflows with state channels, and composite pipelines. Zero Java code required.

Agents:Defined in YAML
Workflow
YAML File โ”€โ”€โ–บ YamlSwarmParser โ”€โ”€โ–บ SwarmDefinition
                                      โ”‚
                                      โ–ผ
                               SwarmCompiler โ”€โ”€โ–บ Live Swarm
                                      โ”‚
                                      โ–ผ
                                swarm.kickoff()
Template variables {{topic}}All 7 process typesTool hooks in YAMLGraph conditional routing
AdvancedGRAPH
code Source

Human-in-the-Loop Graph

Graph workflow with conditional routing. Writer produces draft, human reviewer scores it. If score >= 80, proceed to publish. If iteration >= 3, force publish. Otherwise, loop back to editor for refinement.

Agents:WriterHuman ReviewerEditor
Workflow
START โ”€โ”€โ–บ Writer โ”€โ”€โ–บ Reviewer
                       โ”‚
            score >= 80 โ”œโ”€โ”€โ–บ END (publish)
         iteration >= 3 โ”œโ”€โ”€โ–บ END (force)
              default   โ””โ”€โ”€โ–บ Editor โ”€โ”€โ–บ Writer (loop)
Conditional edgesState channels (score, iteration)Human review checkpointLoop with exit conditions
CoreSEQUENTIAL
code Source

Data Pipeline

ETL-style pipeline. Collector ingests data from CSV and database tools, analyst performs statistical analysis, and generator produces a formatted report with charts description.

Agents:Data CollectorData AnalystReport Generator
Workflow
Data Collector โ”€โ”€[csv, database]โ”€โ”€โ–บ Data Analyst โ”€โ”€[calculator]โ”€โ”€โ–บ Report Generator โ”€โ”€โ–บ output/
CSV analysis toolDatabase query toolCalculator toolFile output
CoreGRAPH
code Source

Customer Support REST API

Full REST API application with AI-powered chat, intelligent routing via SwarmGraph, conversation history, product catalog, order management, and ticket system. Runs on port 8080 with a web UI.

Agents:ClassifierBilling AgentTechnical AgentAccount Agent
Workflow
REST API :8080 โ”€โ”€โ–บ Classifier
  โ”œโ”€โ”€ BILLING โ”€โ”€โ–บ Billing Agent โ”€โ”€โ”
  โ”œโ”€โ”€ TECHNICAL โ”€โ”€โ–บ Tech Agent   โ”€โ”€โ”คโ”€โ”€โ–บ QA โ”€โ”€โ–บ Response
  โ”œโ”€โ”€ ACCOUNT โ”€โ”€โ–บ Account Agent โ”€โ”€โ”ค
  โ””โ”€โ”€ GENERAL โ”€โ”€โ–บ General Agent โ”€โ”€โ”˜
REST APISwarmGraph routingConversation historyWeb UI
CoreSEQUENTIAL
code Source

RAG Knowledge Base

Complete RAG application with document ingestion, vector store integration (Chroma), semantic search, and multi-agent Q&A pipeline. Runs as a REST API on port 8080.

Agents:Retriever AgentWriter Agent
Workflow
POST /ingest โ”€โ”€โ–บ Embed & Store
POST /ask โ”€โ”€โ–บ Retriever โ”€โ”€โ–บ (Vector Store) โ”€โ”€โ–บ Writer โ”€โ”€โ–บ Response
Document ingestionVector store (Chroma)Semantic searchREST API
EnterpriseSEQUENTIAL
code Source

SecureOps Assessment

Security assessment pipeline with budget controls and tool permission enforcement. Recon agent uses web scraping (READ_ONLY), vulnerability analyst processes findings, writer generates the assessment report.

Agents:Recon AgentVulnerability AnalystReport Writer
Workflow
Recon Agent โ”€โ”€[web-scrape: READ_ONLY]โ”€โ”€โ–บ Vuln Analyst โ”€โ”€โ–บ Report Writer

Budget: $5 / 200K tokens | Permission: READ_ONLY enforced
Tool permission levelsBudget trackingREAD_ONLY enforcementSecurity-focused
EnterpriseSWARM
code Source

Distributed Penetration Test

Swarm-based security testing. Scanner discovers targets, parallel agents assess each target independently, coordinator produces a comprehensive security report.

Agents:ScannerExploit AnalystReport Writer
Workflow
Scanner โ”€โ”€โ–บ [Target 1, Target 2, ...]
  โ”œโ”€โ”€โ–บ Exploit Agent โ”€โ”€โ”
  โ”œโ”€โ”€โ–บ Exploit Agent โ”€โ”€โ”คโ”€โ”€โ–บ Security Report
  โ””โ”€โ”€โ–บ Exploit Agent โ”€โ”€โ”˜
SWARM processParallel security agentsCoverage enforcementComprehensive report
Getting StartedSEQUENTIAL
code Source

Hello World โ€” Single Agent

The simplest possible SwarmAI setup: one agent, one task, sequential process, no tools. Start here to learn the basics of Agent, Task, and Swarm.

Agents:Summarizer
Workflow
[Summarizer] โ”€โ”€โ–บ output
1 agent1 taskNo toolsMinimal setup
Getting StartedSEQUENTIAL
code Source

Agent with Tool Calling

A single agent equipped with the CalculatorTool to perform precise arithmetic. The agent decides when to call the tool based on the task description.

Agents:Math Tutor
Workflow
[Math Tutor] โ”€โ”€usesโ”€โ”€โ–บ (CalculatorTool) โ”€โ”€โ–บ output
Tool registrationSpring-managed toolsTool hooksAuto tool invocation
Getting StartedSEQUENTIAL
code Source

Agent-to-Agent Task Handoff

Two agents in sequence. The researcher gathers information, then the editor refines it. Demonstrates task dependencies where one agent output feeds into the next.

Agents:ResearcherEditor
Workflow
[Researcher] โ”€โ”€โ–บ [Editor] โ”€โ”€โ–บ output
Task dependenciesmaxTurns controlPermission levelsOutput chaining
Getting StartedSEQUENTIAL
code Source

Shared Context Between Agents

Three agents in a pipeline sharing context (topic, audience, tone, word count) through the inputs map. Each agent builds on the previous output.

Agents:OutlinerDrafterPolisher
Workflow
[Outliner] โ”€โ”€โ–บ [Drafter] โ”€โ”€โ–บ [Polisher] โ”€โ”€โ–บ output
       โ””โ”€โ”€โ”€โ”€ shared context โ”€โ”€โ”€โ”€โ”˜
Inputs mapContext variables3-stage pipelinedependsOn chaining
Getting StartedSEQUENTIAL
code Source

Multi-Turn Deep Reasoning

A single agent that reasons across multiple LLM turns with automatic context compaction. The agent autonomously decides when to continue and when analysis is complete.

Agents:Deep Researcher
Workflow
[Deep Researcher]
  turn 1 โ†’ turn 2 โ†’ ... โ†’ turn 5
  (auto-compact after 4K tokens)
  โ”€โ”€โ–บ output
maxTurns(5)CompactionConfigCONTINUE/DONE markersIterative reasoning
CoreSEQUENTIAL
code Source

Streaming Real-Time Responses

Reactive multi-turn execution with progress hooks showing incremental output as the agent reasons through the problem.

Agents:Streaming Agent
Workflow
[Agent] โ”€โ”€โ–บ stream chunk 1 โ”€โ”€โ–บ chunk 2 โ”€โ”€โ–บ ... โ”€โ”€โ–บ final output
Reactive streamingProgress hooksMulti-turnIncremental output
CoreSEQUENTIAL
code Source

Error Handling & Recovery

3 resilience scenarios: tool failure recovery, budget enforcement (HARD_STOP), and timeout handling. Demonstrates how SwarmAI handles failures gracefully.

Agents:Various
Workflow
Scenario 1: Tool failure โ”€โ”€โ–บ recovery
Scenario 2: Budget exceeded โ”€โ”€โ–บ HARD_STOP
Scenario 3: Timeout โ”€โ”€โ–บ graceful shutdown
Tool failure recoveryBudget HARD_STOPTimeout handlingGraceful degradation
CoreSEQUENTIAL
code Source

Conversation Memory Persistence

Shared InMemoryMemory across agents โ€” save, search, recall, and cross-agent knowledge sharing. Demonstrates persistent context across the workflow.

Agents:Research AgentAnalysis Agent
Workflow
[Research Agent] โ”€โ”€saveโ”€โ”€โ–บ (Memory) โ”€โ”€recallโ”€โ”€โ–บ [Analysis Agent]
InMemoryMemorySave & recallCross-agent sharingKnowledge persistence
CoreSEQUENTIAL
code Source

Multi-LLM Provider Switching

Same task executed at different temperatures and model variants, with side-by-side comparison of outputs. Useful for prompt engineering and model evaluation.

Agents:Agent (multiple configs)
Workflow
[Task] โ”€โ”€โ–บ Agent (temp=0.1) โ”€โ”€โ–บ output A
       โ”€โ”€โ–บ Agent (temp=0.7) โ”€โ”€โ–บ output B
       โ”€โ”€โ–บ Compare results
Temperature comparisonModel variantsSide-by-side outputPrompt engineering
CorePARALLEL
code Source

Multi-Language Translation

3 agents analyze the same topic in English, Spanish, and French simultaneously. A synthesizer produces a cross-cultural report combining all perspectives.

Agents:English AgentSpanish AgentFrench AgentSynthesizer
Workflow
โ”Œโ”€ English Agent  โ”€โ”
โ”œโ”€ Spanish Agent  โ”€โ”คโ”€โ”€โ–บ Synthesizer โ”€โ”€โ–บ Cross-Cultural Report
โ””โ”€ French Agent   โ”€โ”˜
Parallel execution3 languagesCross-cultural synthesisMulti-agent collaboration
CorePARALLEL
code Source

Stock Market Analysis

3 analyst agents research a stock in parallel using web search and SEC filings tools, then an investment advisor synthesizes findings into a recommendation.

Agents:Financial AnalystResearch AnalystFilings AnalystInvestment Advisor
Workflow
โ”Œโ”€ Financial Analyst โ”€โ”€[calculator, web]โ”€โ”€โ”
โ”œโ”€ Research Analyst โ”€โ”€[web, sec-filings]โ”€โ”€โ”คโ”€โ”€โ–บ Investment Advisor โ”€โ”€โ–บ Report
โ””โ”€ Filings Analyst โ”€โ”€[web, sec-filings]โ”€โ”€โ”˜
Parallel analysisSEC filings toolWeb searchInvestment recommendation
CoreSEQUENTIAL
code Source

Codebase Analysis

Analyze codebase architecture, metrics, and dependencies. Works on any local code directory without external API keys.

Agents:Code Analyst
Workflow
[Code Analyst] โ”€โ”€[file-read, directory-read]โ”€โ”€โ–บ Architecture Report
Local analysisNo API keys neededFile toolsArchitecture insights
CoreSEQUENTIAL
code Source

MCP Model Context Protocol

Research workflow using MCP (Model Context Protocol) tools for web fetch and search. Demonstrates the MCP integration pattern.

Agents:Research Agent
Workflow
[Research Agent] โ”€โ”€[mcp-web-fetch, mcp-web-search]โ”€โ”€โ–บ Report
MCP integrationWeb fetch toolWeb search toolProtocol-based tools
CoreSEQUENTIAL
code Source

Scheduled Cron Monitoring

3-iteration monitoring with file-based state. Detects trends across runs using persistent state files.

Agents:Monitor Agent
Workflow
[Monitor] โ”€โ”€โ–บ Run 1 โ”€โ”€โ–บ Run 2 โ”€โ”€โ–บ Run 3
                โ””โ”€โ”€ file state โ”€โ”€โ”˜ (trend detection)
Scheduled executionFile-based stateTrend detectionMulti-iteration
CoreGRAPH
code Source

Workflow Visualization

Build 4 graph topologies and generate Mermaid diagrams. No LLM needed โ€” demonstrates the graph API and visualization capabilities.

Agents:None (diagram generation)
Workflow
SwarmGraph.create() โ”€โ”€โ–บ topology โ”€โ”€โ–บ Mermaid diagram
Mermaid diagrams4 graph topologiesNo LLM neededVisual workflow design
AdvancedGRAPH
code Source

Evaluator-Optimizer Feedback Loop

Generate โ†’ evaluate โ†’ optimize loop with a quality gate. The evaluator scores output on multiple criteria; if score >= 80, it passes. Otherwise, the optimizer refines and loops back.

Agents:GeneratorEvaluatorOptimizer
Workflow
Generator โ”€โ”€โ–บ Evaluator (score >= 80?)
  โ–ฒ                โ”‚
  โ”‚   NO โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  โ”‚   โ–ผ
  โ””โ”€โ”€ Optimizer

  YES โ”€โ”€โ–บ Final Output
Quality gateScore thresholdOptimize loopMulti-criteria evaluation
AdvancedGRAPH
code Source

Multi-Agent Debate

Two agents debate a proposition over 3 rounds, then a judge declares the winner. Demonstrates the peer interaction pattern with structured argumentation.

Agents:ProponentOpponentJudge
Workflow
Proponent โ”€โ”€โ–บ Opponent โ”€โ”€โ–บ Proponent โ”€โ”€โ–บ ... (3 rounds)
                                                    โ–ผ
                                               [Judge] โ”€โ”€โ–บ Winner
Debate roundsPeer interactionJudge evaluationStructured argumentation
AdvancedSEQUENTIAL
code Source

Unit Testing Agents with Mocks

Agent output quality evaluation with 5-criterion scoring. Includes JUnit 5 unit tests using mock ChatClient โ€” no LLM needed for testing.

Agents:Test Agent
Workflow
[Agent] โ”€โ”€โ–บ output โ”€โ”€โ–บ 5-criterion scorer

JUnit 5: mock ChatClient โ”€โ”€โ–บ verify agent config, hooks, dependencies
Mock ChatClientJUnit 5 tests5-criterion scoringNo LLM needed for tests
AdvancedSWARM
code Source

Competitive Research Swarm

Distributed fan-out pattern. Discovery phase identifies competitor targets, then parallel agents research each independently. Coordinator synthesizes into a master report.

Agents:Discovery AgentResearch AgentSynthesis Agent
Workflow
Discovery โ”€โ”€โ–บ [Target A, Target B, Target C]
  โ”œโ”€โ”€โ–บ Research Agent (A) โ”€โ”€โ”
  โ”œโ”€โ”€โ–บ Research Agent (B) โ”€โ”€โ”คโ”€โ”€โ–บ Coordinator โ”€โ”€โ–บ Master Report
  โ””โ”€โ”€โ–บ Research Agent (C) โ”€โ”€โ”˜
Distributed fan-outParallel sub-swarmsShared skill registryMaster synthesis
AdvancedSWARM
code Source

Investment Analysis Swarm

Multi-company investment analysis with parallel agents and cross-agent skill sharing. Each company is analyzed independently, then findings are synthesized.

Agents:Discovery AgentAnalysis AgentCoordinator
Workflow
โ”Œโ”€ Company A Agent โ”€โ”€โ”
โ”œโ”€ Company B Agent โ”€โ”€โ”คโ”€โ”€โ–บ Coordinator โ”€โ”€โ–บ Investment Report
โ””โ”€ Company C Agent โ”€โ”€โ”˜
Multi-company analysisParallel agentsCross-agent skillsInvestment synthesis
EnterpriseSEQUENTIAL
code Source Enterprise

Enterprise Governance & SPI Hooks

Enterprise-grade workflow with SPI extension points (AuditSink, LicenseProvider, MeteringSink), multi-tenancy isolation, and human-in-the-loop approval gates.

Agents:Research AnalystReport Writer
Workflow
[Researcher] โ”€โ”€โ–บ [Approval Gate] โ”€โ”€โ–บ [Writer]
     โ”‚                                    โ”‚
     +โ”€โ”€ AuditSink โ”€โ”€โ”€ MeteringSink โ”€โ”€โ”€โ”€โ”€โ”€+
     +โ”€โ”€ TenantContext โ”€โ”€ BudgetTracker โ”€โ”€+
SPI extension pointsAuditSinkLicenseProviderMeteringSinkMulti-tenancy
EnterpriseSEQUENTIAL
code Source

Audit Trail Research Pipeline

Research pipeline with full observability. Every tool call is audited and sanitized, the entire workflow is recorded for replay. Multi-turn reasoning with auto-compaction.

Agents:Research Agent
Workflow
[Researcher] โ”€โ”€[audit + sanitize + rate-limit]โ”€โ”€โ–บ output
     โ””โ”€โ”€ Decision Tracing โ”€โ”€ Event Replay โ”€โ”€ Structured Logging
Audit hooksSanitizationRate limitingDecision tracingEvent replay
EnterpriseCOMPOSITE
code Source

Governed Pipeline with Checkpoints

Multi-stage composite pipeline: Parallel research โ†’ Hierarchical synthesis โ†’ Iterative review. Checkpoints between stages, budget enforcement, and Mermaid diagram generation.

Agents:Multiple (3-stage)
Workflow
[Parallel Research] โ”€โ”€โ–บ checkpoint โ”€โ”€โ–บ [Hierarchical Synthesis]
     โ”€โ”€โ–บ checkpoint โ”€โ”€โ–บ [Iterative Review] โ”€โ”€โ–บ Final Report
Composite processCheckpointsBudget enforcementMermaid diagrams3-stage pipeline
CoreSEQUENTIAL
code Source

RAG Retrieval-Augmented Research

RAG workflow with vector store search and multi-agent evidence-grounded report writing using InMemoryKnowledge and SemanticSearchTool.

Agents:Retriever AgentWriter Agent
Workflow
[Retriever] โ”€โ”€(Vector Store)โ”€โ”€โ–บ [Writer] โ”€โ”€โ–บ Grounded Report
InMemoryKnowledgeSemanticSearchToolEvidence-groundedVector store search
AdvancedSELF_IMPROVING
code Source

Deep Reinforcement Learning (DQN)

Iterative workflow powered by a Deep Q-Network (DQN) policy engine. The RL agent learns optimal strategies for task execution through experience replay and neural network optimization.

Agents:AnalystReviewer
Workflow
Analyst โ”€โ”€โ–บ Reviewer โ”€โ”€โ–บ DQN Policy
  โ–ฒ                         โ”‚
  โ””โ”€โ”€ optimize strategy โ”€โ”€โ”€โ”€โ”˜
DQN policy engineExperience replayNeural networkReinforcement learning

Run an Example

git clone https://github.com/intelliswarm-ai/swarm-ai-examples.git
cd swarm-ai-examples

# Run any example (auto-detects Ollama, builds, and runs)
./run.sh bare-minimum
./run.sh customer-support "I need help with billing"
./run.sh stock-analysis TSLA

# Or run from each example's directory
./customer-support-rest-api/run.sh
./rag-knowledge-base-rest-api/run.sh