Add a router to the currently active agent to the StateGraph.
addActiveAgentRouter<
AnnotationRootT extends AnnotationRoot<any> = AnnotationRoot<__type>
>(
builder: StateGraph<AnnotationRootT| Name | Type | Description |
|---|---|---|
builder* | StateGraph<AnnotationRootT["spec"], AnnotationRootT["State"], AnnotationRootT["Update"], any, AnnotationRootT["spec"], AnnotationRootT["spec"]> | |
params* | __type |
The graph builder (StateGraph) to add the router to.
Parameters for the router.