Patterns

From one agent to an entire society.

Coordination is the hard part of multi-agent systems. RustyAI ships eight topologies as first-class, composable patterns.

pattern

Hierarchy

A manager agent decomposes work and delegates down a supervision tree, aggregating results on the way back up.

Ideal use case
Workflows with clear ownership and escalation paths.
Example scenario
A pipeline coordinator splits an ingest job across worker tiers.
hierarchy.rs
let org = Hierarchy::new("root")
.child("ingest", vec!["parse", "normalize"])
.child("index", vec!["shard-a", "shard-b"]);

Coordinate your first population.

Patterns compose with the runtime's supervision and the messaging layer's typed ACL.