Skip to main content
Welcome to the comprehensive Swarms Examples Index! This curated collection showcases the power and versatility of the Swarms framework for building intelligent multi-agent systems. Whether you’re a beginner looking to get started or an advanced developer seeking complex implementations, you’ll find practical examples to accelerate your AI development journey.

What is Swarms?

Swarms is a cutting-edge framework for creating sophisticated multi-agent AI systems that can collaborate, reason, and solve complex problems together. From single intelligent agents to coordinated swarms of specialized AI workers, Swarms provides the tools and patterns you need to build the next generation of AI applications.

What You’ll Find Here

This index organizes 100+ production-ready examples from our Swarms Examples Repository and the main Swarms repository, covering:
  • Single Agent Systems: From basic implementations to advanced reasoning agents
  • Multi-Agent Architectures: Collaborative swarms, hierarchical systems, and experimental topologies
  • Industry Applications: Real-world use cases across finance, healthcare, security, and more
  • Integration Examples: Connect with popular AI models, tools, and frameworks
  • Advanced Patterns: RAG systems, function calling, MCP integration, and more

Getting Started

New to Swarms? Start with the Easy Example under Single Agent Examples → Core Agents. Looking for comprehensive tutorials? Check out The Swarms Cookbook for detailed walkthroughs and advanced patterns. Want to see real-world applications? Explore the Industry Applications section to see how Swarms solves practical problems.

Quick Navigation

Single Agent Examples

Core Agents

CategoryExampleDescription
BasicEasy ExampleBasic agent implementation demonstrating core functionality and setup
SettingsAgent SettingsComprehensive configuration options for customizing agent behavior and capabilities
YAMLAgents from YAMLCreating and configuring agents using YAML configuration files for easy deployment
MemoryAgent with Long-term MemoryImplementation of persistent memory capabilities for maintaining context across sessions

Model Integrations

CategoryExampleDescription
AzureAzure OpenAI AgentIntegration with Azure OpenAI services for enterprise-grade AI capabilities
GroqGroq AgentHigh-performance inference using Groq’s accelerated computing platform
CustomCustom Model AgentFramework for integrating custom ML models into the agent architecture
CerebrasCerebras ExampleIntegration with Cerebras AI platform for high-performance model inference
ClaudeClaude 4 ExampleAnthropic Claude 4 model integration for advanced reasoning capabilities
Swarms ClaudeSwarms Claude ExampleOptimized Claude integration within the Swarms framework
LumoLumo ExampleLumo AI model integration for specialized tasks
Llama4LiteLLM ExampleLlama4 model integration using LiteLLM for efficient inference

Tools and Function Calling

CategoryExampleDescription
Basic ToolsTool AgentBasic tool-using agent demonstrating external tool integration capabilities
Advanced ToolsAgent with Many ToolsAdvanced agent utilizing multiple tools for complex task execution
OpenAI FunctionsOpenAI Function CallerIntegration with OpenAI’s function calling API for structured outputs
Command LineCommand Tool AgentCommand-line interface tool integration
JambaJamba Tool AgentIntegration with Jamba framework for enhanced tool capabilities
PydanticPydantic Tool AgentTool validation and schema enforcement using Pydantic
Function CallerFunction Caller ExampleAdvanced function calling capabilities with dynamic tool execution
LiteLLM ToolsLiteLLM Tool ExampleTool integration using LiteLLM for model-agnostic function calling
Swarms ToolsSwarms Tools ExampleNative Swarms tool ecosystem integration
Structured OutputsStructured Outputs ExampleStructured data output capabilities for consistent responses
Schema ValidationSchema Validation ExampleTool schema validation and error handling

MCP (Model Context Protocol) Integration

CategoryExampleDescription
Agent ToolsAgent Tools Dict ExampleMCP integration for dynamic tool management
MCP ExecuteMCP Execute ExampleMCP command execution and response handling
MCP Load ToolsMCP Load Tools ExampleDynamic tool loading through MCP protocol
Multiple ServersMCP Multiple Servers ExampleMulti-server MCP configuration and management

RAG and Memory

CategoryExampleDescription
Full RAGFull Agent RAG ExampleComplete RAG implementation with retrieval and generation
PineconePinecone ExampleVector database integration using Pinecone for semantic search

Reasoning and Decision Making

CategoryExampleDescription
Agent JudgeAgent Judge ExampleAgent-based decision making and evaluation system
Reasoning DuoReasoning Duo ExampleCollaborative reasoning between two specialized agents

Vision and Multimodal

CategoryExampleDescription
Image BatchImage Batch ExampleBatch processing of multiple images with vision capabilities
MultimodalMultimodal ExampleMulti-modal agent supporting text, image, and audio inputs

Utilities and Output Formats

CategoryExampleDescription
XML OutputXML Output ExampleStructured XML output formatting for agent responses
CSV AgentCSV Agent ExampleCSV data processing and manipulation agent
Swarm MatcherSwarm Matcher ExampleAgent matching and selection system

Third-Party Integrations

CategoryExampleDescription
MicrosoftAutoGen IntegrationIntegration with Microsoft’s AutoGen framework for autonomous agents
LangChainLangChain IntegrationCombining LangChain’s capabilities with Swarms for enhanced functionality
BrowserMultion IntegrationWeb automation and browsing capabilities using Multion
Team AICrew AITeam-based AI collaboration using Crew AI framework
DevelopmentGriptapeIntegration with Griptape for structured AI application development

Industry-Specific Agents

CategoryExampleDescription
Finance401k AgentRetirement planning assistant with investment strategy recommendations
FinanceEstate PlanningComprehensive estate planning and wealth management assistant
SecurityPerimeter DefenseSecurity monitoring and threat detection system
ResearchPerplexity AgentAdvanced research automation using Perplexity AI integration
LegalAlberto AgentLegal research and document analysis assistant
HealthcarePharma AgentPharmaceutical research and drug interaction analysis

Multi-Agent Examples

Core Architectures

CategoryExampleDescription
BasicBuild a SwarmFoundation for creating custom swarm architectures with multiple agents
Auto SwarmAuto SwarmSelf-organizing swarm with automatic task distribution and management
ConcurrentConcurrent SwarmParallel execution of tasks across multiple agents for improved performance
StarStar SwarmCentralized architecture with a hub agent coordinating peripheral agents
CircularCircular SwarmRing topology for cyclic information flow between agents
Graph WorkflowGraph Workflow BasicMinimal graph workflow with two agents and one task

Concurrent and Parallel Processing

CategoryExampleDescription
ConcurrentConcurrent ExampleBasic concurrent execution of multiple agents
Concurrent SwarmConcurrent Swarm ExampleAdvanced concurrent swarm with parallel task processing

Hierarchical and Sequential Workflows

CategoryExampleDescription
HierarchicalHierarchical Swarm ExampleMulti-level hierarchical agent organization
Hierarchical BasicHierarchical Swarm BasicSimplified hierarchical swarm implementation
Hierarchical AdvancedHierarchical AdvancedAdvanced hierarchical swarm with complex agent relationships
Sequential WorkflowSequential Workflow ExampleLinear workflow with agents processing tasks in sequence
Sequential SwarmSequential Swarm ExampleSequential swarm with coordinated task execution

Group Chat and Interactive Systems

CategoryExampleDescription
Group ChatGroup Chat ExampleMulti-agent group chat system with turn-based communication
Group Chat AdvancedGroup Chat AdvancedAdvanced group chat with enhanced interaction capabilities
Mortgage PanelMortgage Tax PanelSpecialized panel for mortgage and tax discussions
Interactive Group ChatInteractive Group ChatInteractive group chat with real-time user participation
Dynamic SpeakerRandom Dynamic SpeakerDynamic speaker selection in group conversations
Interactive SpeakerInteractive Speaker ExampleInteractive speaker management in group chats
Medical PanelMedical Panel ExampleMedical expert panel for healthcare discussions
Stream ExampleStream ExampleStreaming capabilities in interactive group chats

Research and Deep Analysis

CategoryExampleDescription
Advanced ResearchAdvanced Research SystemMulti-agent research system inspired by Anthropic’s research methodology with orchestrator-worker architecture
Deep ResearchDeep Research ExampleComprehensive research system with multiple specialized agents
Deep Research SwarmDeep Research SwarmSwarm-based deep research with collaborative analysis
Scientific AgentsDeep Research Swarm ExampleScientific research swarm for academic and research applications

Routing and Decision Making

CategoryExampleDescription
Model RouterModel Router ExampleIntelligent routing of tasks to appropriate model agents
Multi-Agent RouterMulti-Agent Router ExampleAdvanced routing system for multi-agent task distribution
Swarm RouterSwarm Router ExampleSwarm-specific routing and load balancing
Majority VotingMajority Voting ExampleConsensus-based decision making using majority voting

Council and Collaborative Systems

CategoryExampleDescription
Council JudgeCouncil Judge ExampleCouncil-based decision making with expert judgment

Advanced Collaboration

CategoryExampleDescription
Enhanced CollaborationEnhanced Collaboration ExampleAdvanced collaboration patterns between multiple agents
Mixture of AgentsMixture of Agents ExampleHeterogeneous agent mixture for diverse task handling
AggregateAggregate ExampleAggregation of results from multiple agents

API and Integration

CategoryExampleDescription
Swarms APISwarms API ExampleAPI integration for Swarms multi-agent systems

Utilities and Batch Processing

CategoryExampleDescription
Batch AgentBatch Agent ExampleBatch processing capabilities for multiple agents

Experimental Architectures

CategoryExampleDescription
Monte CarloMonte Carlo SwarmProbabilistic decision-making using Monte Carlo simulation across agents
FederatedFederated SwarmDistributed learning system with privacy-preserving agent collaboration
Ant ColonyAnt SwarmBio-inspired optimization using ant colony algorithms for agent coordination
MatrixAgent MatrixGrid-based agent organization for complex problem-solving
DFSDFS Search SwarmDepth-first search swarm for complex problem exploration
PulsarPulsar SwarmPulsar-based coordination for synchronized agent behavior

Collaboration Patterns

CategoryExampleDescription
DelegationAgent DelegationTask delegation and management system
CommunicationMessage PoolShared communication system for efficient agent interaction
SchedulingRound RobinRound-robin task scheduling and execution
Load BalancingLoad BalancerDynamic task distribution system for optimal resource utilization
ConsensusMajority VotingConsensus-building system using democratic voting among agents

Industry Applications

CategoryExampleDescription
FinanceAccountant TeamMulti-agent system for financial analysis, bookkeeping, and tax planning
MarketingAd GenerationCollaborative ad creation with copywriting and design agents
AerospaceSpace Traffic ControlComplex simulation of space traffic management with multiple coordinating agents
AgriculturePlant BiologyAgricultural analysis and optimization using specialized biology agents
Urban DevUrban PlanningCity development planning with multiple specialized urban development agents
EducationEducation SystemPersonalized learning system with multiple teaching and assessment agents
SecurityEmail Phishing DetectionMulti-agent security analysis and threat detection
FashionPersonal StylistFashion recommendation system with style analysis and matching agents
HealthcareHealthcare AssistantMedical diagnosis and treatment planning with specialist consultation agents
Security OpsSecurity TeamComprehensive security operations with threat detection and response agents
MedicalX-Ray AnalysisMulti-agent medical imaging analysis and diagnosis
BusinessBusiness StrategyStrategic planning and business development swarm
ResearchAstronomy ResearchCollaborative space research and astronomical analysis

Connect With Us

Join our community of agent engineers and researchers for technical support, cutting-edge updates, and exclusive access to world-class agent engineering insights!
PlatformDescriptionLink
📚 DocumentationOfficial documentation and guidesdocs.swarms.world
📝 BlogLatest updates and technical articlesMedium
💬 DiscordLive chat and community supportJoin Discord
🐦 TwitterLatest news and announcements@swarms_corp
👥 LinkedInProfessional network and updatesThe Swarm Corporation
📺 YouTubeTutorials and demosSwarms Channel
🎫 EventsJoin our community eventsSign up here
🚀 Onboarding SessionGet onboarded with Kye Gomez, creator and lead maintainer of SwarmsBook Session