|
1 week ago | |
---|---|---|
.. | ||
demos | 1 week ago | |
deployment | 2 weeks ago | |
guides | 2 weeks ago | |
hackathons/hackathon_sep_27 | 2 weeks ago | |
mcp | 2 weeks ago | |
models | 1 month ago | |
multi_agent | 2 weeks ago | |
rag | 2 weeks ago | |
reasoning_agents | 2 weeks ago | |
single_agent | 2 weeks ago | |
swarms_api_examples | 2 weeks ago | |
tools | 2 weeks ago | |
ui | 2 weeks ago | |
utils | 2 weeks ago | |
workshops | 2 weeks ago | |
README.md | 2 weeks ago |
README.md
Swarms Examples
This directory contains comprehensive examples demonstrating various capabilities and use cases of the Swarms framework. Each subdirectory focuses on specific aspects of multi-agent systems, single agents, tools, and integrations.
📁 Directory Overview
🤖 Multi-Agent Systems
- multi_agent/ - Advanced multi-agent patterns including agent rearrangement, auto swarm builder (ASB), batched workflows, board of directors, caching, concurrent processing, councils, debates, elections, forest swarms, graph workflows, group chats, heavy swarms, hierarchical swarms, majority voting, and orchestration examples.
👤 Single Agent Systems
- single_agent/ - Single agent implementations including demos, external agent integrations, LLM integrations (Azure, Claude, DeepSeek, Mistral, OpenAI, Qwen), onboarding, RAG, reasoning agents, tools integration, utils, and vision capabilities.
🛠️ Tools & Integrations
- tools/ - Tool integration examples including agent-as-tools, base tool implementations, browser automation, Claude integration, Exa search, Firecrawl, multi-tool usage, and Stagehand integration.
🎯 Model Integrations
- models/ - Various model integrations including Cerebras, GPT-5, GPT-OSS, Llama 4, Lumo, Ollama, and VLLM implementations.
🔌 API & Protocols
-
swarms_api_examples/ - Swarms API usage examples including agent overview, batch processing, client integration, team examples, analysis, and rate limiting.
-
mcp/ - Model Context Protocol (MCP) integration examples including agent implementations, multi-connection setups, server configurations, and utility functions.
🧠 Advanced Capabilities
-
reasoning_agents/ - Advanced reasoning capabilities including agent judge evaluation systems and O3 model integration.
-
rag/ - Retrieval Augmented Generation (RAG) implementations with vector database integrations.
📚 Guides & Tutorials
- guides/ - Comprehensive guides and tutorials including generation length blog, geo guesser agent, graph workflow guide, hierarchical marketing team, nano banana Jarvis agent, smart database, and web scraper agents.
🎪 Demonstrations
- demos/ - Domain-specific demonstrations across various industries including apps, charts, crypto, CUDA, finance, hackathon projects, insurance, legal, medical, news, privacy, real estate, science, and synthetic data generation.
🚀 Deployment
- deployment/ - Deployment strategies and patterns including cron job implementations and FastAPI deployment examples.
🛠️ Utilities
- utils/ - Utility functions and helper implementations including agent loader, communication examples, concurrent wrappers, miscellaneous utilities, and telemetry.
🎓 Educational
- workshops/ - Workshop examples and educational sessions including agent tools, batched grids, geo guesser, and Jarvis agent implementations.
🖥️ User Interface
- ui/ - User interface examples and implementations including chat interfaces.
🚀 Quick Start
- New to Swarms? Start with single_agent/simple_agent.py for basic concepts
- Want multi-agent workflows? Check out multi_agent/duo_agent.py
- Need tool integration? Explore tools/agent_as_tools.py
- Looking for guides? Visit guides/ for comprehensive tutorials
📖 Documentation
Each subdirectory contains its own README.md file with detailed descriptions and links to all available examples. Click on any folder above to explore its specific examples and use cases.
🔗 Related Resources
💡 Contributing
Found an interesting example or want to add your own? Check out our contributing guidelines and feel free to submit pull requests with new examples or improvements to existing ones.
This examples directory is continuously updated with new patterns, integrations, and use cases. Check back regularly for the latest examples!