AI Agents · Concept
Swarm
@langchain/langgraph-swarm builds swarm-style multi-agent workflows. Agents hand off control to specialized agents, while persisted state can retain the active agent and conversation across turns.
Last updated
Syntax
createSwarm({ agents, defaultActiveAgent })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createSwarmcreateHandoffTooladdActiveAgentRoutergetHandoffDestinationsSwarmStateMETADATA_KEY_HANDOFF_DESTINATIONMemorySaverInMemoryStore