Skip to main content
Discover the different types of reasoning agents available in the Swarms API. The /v1/reasoning-agent/types endpoint provides information about specialized reasoning architectures designed for different problem-solving approaches.
Premium Tier Required: The /v1/reasoning-agent/completions endpoint is restricted to Pro, Ultra, and Premium plan subscribers. Free tier users will receive a 403 error. Upgrade your account to access advanced reasoning capabilities.
Reasoning agents use advanced techniques like self-consistency, majority voting, and iterative refinement to improve answer quality and reliability.

Quick Start

Reasoning Agent Type Comparison

The /v1/reasoning-agent/types endpoint currently returns 9 reasoning agent types:

Request Parameters

Send these fields in the JSON body of POST /v1/reasoning-agent/completions (the ReasoningAgentSpec schema):
The schema default for swarm_type is the underscore spelling "reasoning_duo", which is not itself one of the 9 accepted values — the enum only contains the hyphenated "reasoning-duo". If you set swarm_type explicitly, use one of the 9 hyphenated/listed values above; the underscore form is rejected.

Response Format

POST /v1/reasoning-agent/completions returns a ReasoningAgentCompletionOutput object:

Usage Examples

Advanced Configuration

Output Format

The output_type request field is accepted by the schema but ignored by the server — the reasoning agent always runs with dict-all-except-first, which returns every reasoning step after the initial prompt as role/content entries in the outputs field. Passing "dict", "list", or "final" validates but has no effect on the response.

Performance Optimization

Use Cases by Domain

Best Practices

Configuration Guidelines

  1. Task Complexity: Match reasoning type to task complexity
  2. Sample Count: Use more samples for high-stakes decisions
  3. Iteration Count: Increase iterations for complex refinement
  4. Model Selection: Choose appropriate model based on requirements

Quality Assurance

  1. Consistency Checking: Use self-consistency for critical decisions
  2. Diverse Perspectives: Leverage reasoning-duo for balanced analysis
  3. Iterative Improvement: Apply IRE for complex problem-solving
  4. Validation: Always validate reasoning outputs

Performance Considerations

  1. Resource Usage: Monitor token usage and costs
  2. Response Time: Balance quality with response speed
  3. Scalability: Consider parallel processing for multiple tasks
  4. Caching: Cache reasoning results when appropriate

Error Handling

  1. Fallback Logic: Implement fallback to simpler reasoning types
  2. Timeout Handling: Set appropriate timeouts for long-running tasks
  3. Result Validation: Validate reasoning outputs for correctness
  4. Logging: Log reasoning processes for debugging