addActiveAgentRouter<
AnnotationRootT extends AnnotationRoot<any> = any
>(
builder: StateGraph<AnnotationRootT["spec"], AnnotationRootT["State"| Name | Type | Description |
|---|---|---|
builder* | StateGraph<AnnotationRootT["spec"], AnnotationRootT["State"], AnnotationRootT["Update"], any, AnnotationRootT["spec"], AnnotationRootT["spec"]> | |
routeTo* | __type |
Add a router to the currently active agent to the StateGraph.
The graph builder (StateGraph) to add the router to.
A list of agent (node) names to route to.