Module: SwarmSDK::Defaults::Concurrency

Defined in:
lib/swarm_sdk/defaults.rb

Overview

Concurrency limits for parallel execution

These limits prevent overwhelming external services and ensure fair resource usage across the system.

Constant Summary collapse

GLOBAL_LIMIT =

Maximum concurrent API calls across entire swarm

This limits total parallel LLM API requests to prevent rate limiting and excessive resource consumption. 50 is a balanced value that allows good parallelism while respecting API rate limits.

50
LOCAL_LIMIT =

Maximum parallel tool executions per agent

Limits concurrent tool calls within a single agent. 10 allows meaningful parallelism (e.g., reading multiple files) without overwhelming the system.

10