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