Create a multi-agent swarm.
createSwarm<
AnnotationRootT extends AnnotationRoot<any> = any
>(
agents: CreateSwarmParams<AnnotationRootT>
): StateGraph<AnnotationRootT["spec"], AnnotationRootT["State"], AnnotationRootT["Update"], string, AnnotationRootT["spec"], AnnotationRootT["spec"]>| Name | Type | Description |
|---|---|---|
agents* | CreateSwarmParams<AnnotationRootT> |
List of agents to add to the swarm