/v1/swarms/available endpoint provides information about different swarm types, their capabilities, and use cases.
Different swarm types are optimized for different workflows - choose the right architecture for your specific needs.
Quick Start
- Python
- JavaScript
- cURL
swarm_types is a flat list of the 14 identifiers you pass as swarm_type in a SwarmSpec. swarm_types_metadata carries the same 14 types with rich metadata: name, description, category (workflow, collaboration, routing, judgment, or auto), best_for (representative use cases), parameters (swarm-type-specific SwarmSpec fields beyond the common agents/task/max_loops), and documentation_url (null for types without a dedicated docs page).Swarm Type Selection Guide
For Different Use Cases
- Complex Problem Solving
- Step-by-Step Processes
- Parallel Processing
- Dynamic Optimization
Swarm Type Comparison
The/v1/swarms/available endpoint currently returns 14 swarm types (the swarm_type value, its category, and the first best_for use case from swarm_types_metadata):
Advanced Swarm Configuration
- Hierarchical Swarm
- Group Chat Swarm
Swarm Performance Optimization
- Load Balancing
- Cost Optimization
- Quality Optimization
Best Practices
Swarm Design
- Match Type to Task: Choose swarm type based on your specific requirements
- Agent Diversity: Use diverse agents with different expertise areas
- Clear Roles: Define clear roles and responsibilities for each agent
- Communication Protocols: Establish clear communication patterns
Performance Optimization
- Resource Allocation: Allocate resources based on task complexity
- Load Balancing: Distribute work evenly across agents
- Monitoring: Monitor swarm performance and adjust configuration
- Scalability: Design swarms that can scale with increased load
Quality Assurance
- Testing: Test swarm configurations with sample tasks
- Validation: Validate outputs against expected results
- Feedback Loops: Implement feedback mechanisms for improvement
- Version Control: Track swarm configuration versions
Cost Management
- Model Selection: Choose appropriate models based on task requirements
- Resource Limits: Set appropriate limits to control costs
- Usage Monitoring: Monitor resource usage and costs
- Optimization: Continuously optimize for cost efficiency