Add a router to the currently active agent to the StateGraph.
The graph builder (StateGraph) to add the router to.
Parameters for the router.
Name of the agent to route to by default (if no agents are currently active).
A list of agent (node) names to route to.
StateGraph with the router added.
Add a router to the currently active agent to the StateGraph.