Skip to content

SwarmRouter

task -> route choice -> selected workflow

Draw inputs, outputs, and dependencies before choosing a class or architecture. The more complex the structure, the more important it is to preserve intermediate outputs, route decisions, cost, and timing.

ShapeUse when
LineEach step depends on the previous one.
ParallelMultiple roles work independently on the same input.
GraphMixed dependencies and join points.
RouterDifferent tasks need different workflows.

Draw inputs, outputs, and dependencies before choosing an architecture. If the arrows are a straight line, a sequence is enough. If branches join later, use a graph. If different task types need different workflows, use routing.

task -> route choice -> selected workflow -> result
ShapeUse when
LineEach step depends on the previous output.
ParallelSeveral roles can work independently.
GraphDependencies split and join.
RouterThe first decision is which workflow should run.

Complex agent systems need inspectable raw outputs. The final answer alone rarely explains which role introduced a wrong assumption.