swarms.structs.swarming_architectures and swarms.structs.ma_blocks compose custom multi-agent flows before you reach full workflows like SequentialWorkflow or GraphWorkflow.
- Broadcast
- Circular
- Mesh
- Grid
- Star
- Pyramid
- One-to-one
- Aggregate
One sender broadcasts; all receivers process the shared context (
broadcast is async):Choosing a pattern
| Pattern | Best for |
|---|---|
| Broadcast | One announcement, many parallel responses |
| Circular | Sequential refinement with shared history |
| Mesh | Many independent tasks, worker pool |
| Grid | Local neighbor collaboration |
| Star | Central coordinator + specialists |
| Pyramid | Layered command structure |
| One-to-one | Single handoff between two agents |
| Aggregate | Fan-in synthesis of parallel outputs |