The Swarms API provides a comprehensive multi-tier architecture for building collaborative agentic systems.
Tier | Name | Agent Count | Complexity | Primary Use | Example Use Cases | API Endpoint |
---|---|---|---|---|---|---|
Tier 1 | Individual Agents | 1 | Low-Medium | Focused tasks | Content generation, data analysis, Q&A | /v1/agent/completions |
Tier 2 | Reasoning Agents | 1-2 (internal) | Medium-High | Complex reasoning | Mathematical proofs, logical validation, research | /v1/reasoning-agent/completions |
Tier 3 | Multi-Agent Swarms | 3-10,000+ | High | Enterprise workflows | Process automation, large-scale systems, R&D | /v1/swarm/completions |
Agent Type | Description | Best For |
---|---|---|
reasoning-duo | Dual-agent system with perspective synthesis | Mathematical problems, logical proofs |
self-consistency | Multiple reasoning paths with validation | Complex logical problems, consistency checking |
ire | Iterative refinement approach | Complex analysis, research problems |
reasoning-agent | General-purpose systematic reasoning | Step-by-step problem solving |
consistency-agent | Logical consistency and contradiction detection | Argument validation |
ReflexionAgent | Self-reflection and bias detection | Meta-cognitive tasks |
GKPAgent | Cross-domain knowledge synthesis | Interdisciplinary problems |
Swarm Type | Description | Agent Count | Best For |
---|---|---|---|
SequentialWorkflow | Linear task progression | 3-50 | Process automation, step-by-step workflows |
ConcurrentWorkflow | Parallel task execution | 5-100 | Parallel processing, independent tasks |
GroupChat | Interactive agent discussions | 3-20 | Collaborative problem solving, brainstorming |
MixtureOfAgents | Specialized agent selection | 5-200 | Complex tasks requiring multiple expertise areas |
MajorityVoting | Consensus-based decision making | 5-50 | Decision making, validation tasks |
CouncilAsAJudge | Expert panel with final judge | 5-30 | Expert evaluation, quality assessment |
InteractiveGroupChat | Real-time agent interactions | 3-15 | Dynamic problem solving, real-time collaboration |
AgentRearrange | Dynamic agent reordering | 3-100 | Adaptive workflows, optimization |
MultiAgentRouter | Intelligent task routing | 10-500 | Large-scale task distribution |
HiearchicalSwarm | Nested agent hierarchies | 10-1000 | Complex organizational structures |
AutoSwarmBuilder | Automatic swarm construction | 5-200 | Dynamic swarm creation, optimization |
MALT | Multi-agent learning and training | 10-10000+ | Large-scale learning systems |
Aspect | Individual Agents | Reasoning Agents | Multi-Agent Swarms |
---|---|---|---|
Agent Count | 1 | 1-2 (internal) | 3-10,000+ |
Complexity | Low-Medium | Medium-High | High-Extreme |
Use Case | Focused tasks | Complex reasoning | Enterprise workflows |
Setup Time | Minutes | Minutes-Hours | Hours-Days |
Resource Usage | Low | Medium | High |
Scalability | Individual | Limited | Massive |
Cost | Low | Medium | High |
Maintenance | Simple | Moderate | Complex |